3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Earth; class Human{} namespace Universe; $human = new \Earth\Human(); echo get_class($human); $class = str_replace('Earth\\', get_class($human)); echo $class;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0090.00918.58
8.3.50.0100.00821.08
8.3.40.0140.00718.94
8.3.30.0070.00719.09
8.3.20.0040.00420.20
8.3.10.0000.00822.13
8.3.00.0000.00822.39
8.2.180.0100.00316.75
8.2.170.0110.00422.96
8.2.160.0100.00719.19
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.54
8.2.110.0040.00422.18
8.2.100.0110.00019.17
8.2.90.0090.00019.16
8.2.80.0000.00818.01
8.2.70.0000.00817.63
8.2.60.0050.00517.93
8.2.50.0030.00518.07
8.2.40.0060.00618.22
8.2.30.0040.00418.08
8.2.20.0030.00617.85
8.2.10.0060.00317.79
8.2.00.0070.00317.55
8.1.280.0110.01125.92
8.1.270.0080.00022.19
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00623.86
8.1.230.0000.01119.15
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00917.51
8.1.180.0000.00820.48
8.1.170.0030.00618.50
8.1.160.0000.00722.15
8.1.150.0070.00018.58
8.1.140.0040.00417.44
8.1.130.0040.00417.73
8.1.120.0040.00317.37
8.1.110.0000.00717.36
8.1.100.0070.00017.41
8.1.90.0040.00417.29
8.1.80.0080.00017.42
8.1.70.0000.00717.37
8.1.60.0030.00517.45
8.1.50.0080.00017.50
8.1.40.0040.00417.36
8.1.30.0000.00717.68
8.1.20.0050.00317.57
8.1.10.0030.00617.62
8.1.00.0000.00817.40
8.0.300.0030.00318.77
8.0.290.0080.00017.18
8.0.280.0020.00518.46
8.0.270.0030.00517.25
8.0.260.0070.00016.80
8.0.250.0000.00717.07
8.0.240.0040.00417.05
8.0.230.0030.00316.98
8.0.220.0000.00716.80
8.0.210.0070.00016.88
8.0.200.0060.00017.00
8.0.190.0090.00016.92
8.0.180.0020.00516.82
8.0.170.0000.00916.91
8.0.160.0000.00716.91
8.0.150.0020.00516.96
8.0.140.0050.00316.91
8.0.130.0050.00313.36
8.0.120.0080.00016.86
8.0.110.0000.00716.92
8.0.100.0030.00316.88
8.0.90.0050.00216.86
8.0.80.0090.00616.77
8.0.70.0040.00416.75
8.0.60.0000.00716.91
8.0.50.0000.00716.79
8.0.30.0100.01117.23
8.0.20.0110.00817.40
8.0.10.0040.00416.99
8.0.00.0090.00916.78
7.4.330.0000.00415.00
7.4.320.0050.00216.43
7.4.300.0000.00716.51
7.4.290.0030.00316.48
7.4.280.0000.00816.44
7.4.270.0000.00716.43
7.4.260.0040.00416.52
7.4.250.0030.00616.39
7.4.240.0040.00416.38
7.4.230.0000.00716.35
7.4.220.0070.01016.50
7.4.210.0070.00716.51
7.4.200.0040.00416.55
7.4.190.0000.00716.41
7.4.160.0100.00616.62
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0140.00716.50
7.4.120.0110.00516.53
7.4.110.0100.00716.52
7.4.100.0070.01416.52
7.4.90.0030.01416.37
7.4.80.0120.01219.39
7.4.70.0080.00816.57
7.4.60.0160.00016.59
7.4.50.0060.00016.61
7.4.40.0000.01422.77
7.4.30.0030.01416.63
7.4.00.0100.00714.63
7.3.330.0000.00513.13
7.3.320.0000.00613.21
7.3.310.0030.00316.11
7.3.300.0000.00716.17
7.3.290.0030.01216.30
7.3.280.0050.01116.27
7.3.270.0140.00317.40
7.3.260.0050.01116.66
7.3.250.0080.00916.46
7.3.240.0070.01016.40
7.3.230.0050.01216.45
7.3.210.0180.00016.38
7.3.200.0070.01019.39
7.3.190.0110.01116.43
7.3.180.0060.01216.41
7.3.170.0030.01216.36
7.3.160.0090.00916.38
7.3.120.0000.01714.84
7.2.330.0070.01016.66
7.2.320.0130.00316.71
7.2.310.0030.01516.53
7.2.300.0090.00816.35
7.2.290.0110.00416.73
7.1.70.0000.00817.10
7.1.60.0040.01519.82
7.1.50.0070.01017.02
7.1.00.0070.06022.30
7.0.200.0070.00016.77
7.0.140.0170.06322.09
7.0.60.0100.05019.85
7.0.50.0070.07717.89
7.0.40.0100.05720.31
7.0.30.0230.06720.34
7.0.20.0200.04320.09
7.0.10.0270.08020.12
7.0.00.0070.03720.15
5.6.280.0070.08720.82
5.6.210.0200.07320.47
5.6.200.0070.05018.23
5.6.190.0130.04720.61
5.6.180.3570.05020.52
5.6.170.0270.07720.46
5.6.160.0030.07320.41
5.6.150.0200.06318.15
5.6.140.0070.08018.12
5.6.130.0130.08018.15
5.6.120.0130.04721.12
5.6.110.0130.07020.96
5.6.100.0070.07020.95
5.6.90.0000.08020.94
5.6.80.0170.06320.37
5.6.70.0170.07720.40
5.5.350.0030.06020.42
5.5.340.0030.08017.99
5.5.330.0130.07020.19
5.5.320.0300.07020.41
5.5.310.0170.06020.36
5.5.300.0070.06318.09
5.5.290.0030.04317.95
5.5.280.0030.08720.64
5.5.270.0070.07720.89
5.5.260.0170.07320.79
5.5.250.0030.04020.55
5.5.240.0100.05020.36
5.4.450.0070.06319.17
5.4.440.0930.05019.16
5.4.430.0230.05019.43
5.4.420.0230.04319.43
5.4.410.0200.05719.18
5.4.400.0370.06018.89
5.4.390.0470.07318.50
5.4.380.0230.06318.74
5.4.370.0170.04718.46
5.4.360.0170.04718.50
5.4.350.0300.04018.79
5.4.340.0070.06018.62
5.4.320.0050.03912.49
5.4.310.0060.03712.49
5.4.300.0070.04312.49
5.4.290.0100.03712.49
5.4.280.0030.03812.39
5.4.270.0070.04412.39
5.4.260.0100.05019.01
5.4.250.0100.05318.95
5.4.240.0030.05718.96
5.4.230.0130.07018.75
5.4.220.0000.06318.79
5.4.210.0130.07018.94
5.4.200.0130.04719.07
5.4.190.0100.05018.94
5.4.180.0070.05018.96
5.4.170.0000.05718.72
5.4.160.0030.05718.78
5.4.150.0100.05318.71
5.4.140.0070.05016.54
5.4.130.0070.05016.37
5.4.120.0030.05316.37
5.4.110.0030.05316.40
5.4.100.0030.05716.36
5.4.90.0070.05016.63
5.4.80.0070.04716.46
5.4.70.0100.04716.58
5.4.60.0000.05716.47
5.4.50.0070.05016.50
5.4.40.0130.04316.42
5.4.30.0100.04716.38
5.4.20.0070.05016.46
5.4.10.0170.04016.33
5.4.00.0030.05315.98
5.3.290.0080.04612.80
5.3.280.0100.04714.75
5.3.270.0000.05714.61
5.3.260.0070.06714.66
5.3.250.0070.05014.57
5.3.240.0100.05314.61
5.3.230.0130.04314.68
5.3.220.0070.05014.57
5.3.210.0100.05314.56
5.3.200.0130.04714.65
5.3.190.0030.05314.65
5.3.180.0030.05314.73
5.3.170.0170.05314.77
5.3.160.0200.06314.69
5.3.150.0100.05714.39
5.3.140.0100.04714.64
5.3.130.0100.05014.76
5.3.120.0000.06014.71
5.3.110.0070.05014.63
5.3.100.0100.06714.05
5.3.90.0000.07014.14
5.3.80.0130.05314.09
5.3.70.0000.05713.99
5.3.60.0000.06014.16
5.3.50.0030.05314.02
5.3.40.0000.05314.00
5.3.30.0100.04313.87
5.3.20.0130.06313.68
5.3.10.0100.06713.77
5.3.00.0070.05013.67
5.2.170.0130.03311.13
5.2.160.0030.04311.03
5.2.150.0130.03711.25
5.2.140.0070.04011.07
5.2.130.0070.04011.00
5.2.120.0070.05311.11
5.2.110.0030.04011.11
5.2.100.0100.03711.03
5.2.90.0030.04311.24
5.2.80.0130.03311.09
5.2.70.0130.04711.20
5.2.60.0070.04011.07
5.2.50.0000.04711.13
5.2.40.0100.03711.00
5.2.30.0170.03311.12
5.2.20.0100.04010.72
5.2.10.0130.05010.62
5.2.00.0070.04710.76
5.1.60.0030.03710.09
5.1.50.0130.0409.93
5.1.40.0070.03010.06
5.1.30.0030.03710.22
5.1.20.0100.03310.43
5.1.10.0000.0379.95
5.1.00.0100.03010.12
5.0.50.0070.0238.57
5.0.40.0070.0238.43
5.0.30.0030.0438.25
5.0.20.0070.0238.28
5.0.10.0030.0278.15
5.0.00.0070.0378.24
4.4.90.0100.0237.44
4.4.80.0000.0277.44
4.4.70.0100.0237.44
4.4.60.0000.0277.44
4.4.50.0070.0207.44
4.4.40.0030.0337.44
4.4.30.0030.0277.44
4.4.20.0000.0307.44
4.4.10.0000.0237.44
4.4.00.0000.0377.44
4.3.110.0030.0237.44
4.3.100.0030.0207.44
4.3.90.0070.0207.44
4.3.80.0000.0337.44
4.3.70.0100.0137.44
4.3.60.0070.0277.44
4.3.50.0070.0277.44
4.3.40.0000.0477.44
4.3.30.0000.0237.44
4.3.20.0030.0207.44
4.3.10.0030.0237.44
4.3.00.0230.0207.09

preferences:
50.01 ms | 401 KiB | 5 Q