3v4l.org

run code in 300+ PHP versions simultaneously
<?php function id($x) { return $x; } echo (new class { public function nameThyself() { return get_class($this); } })->nameThyself();

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.0170.00318.56
8.3.50.0080.01421.18
8.3.40.0040.01118.66
8.3.30.0040.01518.56
8.3.20.0000.00720.04
8.3.10.0080.00021.71
8.3.00.0080.00020.22
8.2.180.0070.00718.41
8.2.170.0120.00322.96
8.2.160.0070.00720.47
8.2.150.0110.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0070.00422.10
8.2.100.0080.00417.80
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0040.00417.62
8.2.60.0050.00317.88
8.2.50.0030.00518.07
8.2.40.0020.00719.18
8.2.30.0000.00820.72
8.2.20.0040.00417.68
8.2.10.0000.00718.04
8.2.00.0090.00017.98
8.1.280.0140.00725.92
8.1.270.0040.00423.93
8.1.260.0040.00426.35
8.1.250.0110.00328.09
8.1.240.0040.00422.55
8.1.230.0040.00821.04
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0040.00416.88
8.1.180.0080.00018.10
8.1.170.0000.01118.33
8.1.160.0000.00722.06
8.1.150.0070.00018.73
8.1.140.0090.00017.29
8.1.130.0030.00317.62
8.1.120.0000.00717.31
8.1.110.0030.00717.25
8.1.100.0040.00417.37
8.1.90.0000.00817.29
8.1.80.0000.00717.37
8.1.70.0070.00017.34
8.1.60.0000.00817.53
8.1.50.0030.00517.50
8.1.40.0040.00717.45
8.1.30.0080.00017.52
8.1.20.0060.00317.57
8.1.10.0000.00717.49
8.1.00.0000.00817.41
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.34
8.0.270.0000.00717.20
8.0.260.0000.00617.10
8.0.250.0000.00816.88
8.0.240.0000.00816.91
8.0.230.0030.00316.86
8.0.220.0000.00816.70
8.0.210.0040.00416.70
8.0.200.0000.00616.81
8.0.190.0000.00816.79
8.0.180.0050.00316.84
8.0.170.0030.00516.82
8.0.160.0000.00716.91
8.0.150.0000.00716.80
8.0.140.0040.00316.78
8.0.130.0030.00313.13
8.0.120.0050.00216.67
8.0.110.0030.00516.86
8.0.100.0020.00516.86
8.0.90.0050.00316.64
8.0.80.0060.01016.70
8.0.70.0040.00416.73
8.0.60.0050.00316.75
8.0.50.0000.00716.82
8.0.30.0120.00617.19
8.0.20.0130.00717.40
8.0.10.0040.00416.92
8.0.00.0100.01016.90
7.4.330.0000.00515.08
7.4.320.0040.00416.45
7.4.300.0000.00716.50
7.4.290.0070.00016.38
7.4.280.0040.00416.28
7.4.270.0030.00316.36
7.4.260.0000.00716.38
7.4.250.0040.00416.46
7.4.240.0070.00016.44
7.4.230.0000.00716.27
7.4.220.0090.00916.55
7.4.210.0060.01216.61
7.4.200.0000.00716.47
7.4.160.0080.00816.36
7.4.150.0060.01517.40
7.4.140.0100.01217.86
7.4.130.0120.00516.53
7.4.120.0130.00516.46
7.4.110.0000.01716.41
7.4.100.0050.01316.59
7.4.90.0140.00316.59
7.4.80.0100.01019.39
7.4.70.0070.01416.59
7.4.60.0070.00716.48
7.4.50.0050.00316.57
7.4.40.0160.00616.30
7.4.30.0060.01216.46
7.4.00.0100.00315.17
7.3.330.0050.00013.16
7.3.320.0050.00013.15
7.3.310.0040.00416.29
7.3.300.0040.00416.24
7.3.290.0090.00816.17
7.3.280.0110.00716.22
7.3.270.0040.01417.40
7.3.260.0070.01016.26
7.3.250.0080.00816.35
7.3.240.0050.01616.42
7.3.230.0120.00616.39
7.3.210.0100.01316.39
7.3.200.0110.00716.19
7.3.190.0080.00816.49
7.3.180.0060.01016.25
7.3.170.0110.00616.32
7.3.160.0060.01316.52
7.2.330.0210.00416.65
7.2.320.0030.01416.21
7.2.310.0070.01016.64
7.2.300.0130.00316.61
7.2.290.0080.00816.66
7.2.60.0120.00316.62
7.2.00.0030.01319.25
7.1.200.0080.00415.72
7.1.100.0060.00618.10
7.1.70.0040.00417.02
7.1.60.0070.01719.11
7.1.50.0070.01416.70
7.1.00.0030.07722.33
7.0.200.0000.00916.61
7.0.60.0030.04319.91
7.0.50.0000.08717.86
7.0.40.0100.04320.27
7.0.30.0470.06320.06
7.0.20.0330.07720.16
7.0.10.0000.04720.08
7.0.00.0070.05720.07
5.6.280.0000.07721.02
5.6.210.0170.04320.57
5.6.200.0130.05018.14
5.6.190.0030.04720.70
5.6.180.0470.04320.61
5.6.170.0070.05020.51
5.6.160.0000.07720.39
5.6.150.0030.07018.25
5.6.140.0030.05318.29
5.6.130.0100.04018.14
5.6.120.0070.08320.96
5.6.110.0170.03720.98
5.6.100.0130.06021.07
5.6.90.0070.08720.98
5.6.80.0100.06020.36
5.5.350.0000.08320.42
5.5.340.0100.08018.09
5.5.330.0100.08020.42
5.5.320.3730.04720.27
5.5.310.0270.07720.36
5.5.300.0070.07318.08
5.5.290.0130.07718.09
5.5.280.0000.04320.77
5.5.270.0170.07720.63
5.5.260.0030.04020.76
5.5.250.0130.07720.71
5.5.240.0070.06320.19
5.4.450.0670.05319.36
5.4.440.0800.06719.36
5.4.430.0870.05319.34
5.4.420.1170.06019.34
5.4.410.1100.06019.28
5.4.400.0770.04719.18
5.4.390.0830.06019.10
5.4.380.0870.06019.06
5.4.370.0630.06019.25
5.4.360.0800.06719.25
5.4.350.0670.04718.95
5.4.340.0730.04319.10
5.4.320.0630.05018.87
5.4.310.0830.05319.25
5.4.300.0600.05719.01
5.4.290.0800.05719.01
5.4.280.0800.04719.10
5.4.270.0670.04718.84
5.4.260.0570.06019.11
5.4.250.0600.05318.88
5.4.240.0600.05319.20
5.4.230.0770.05018.86
5.4.220.0700.05718.83
5.4.210.0770.04319.01
5.4.200.0700.04318.98
5.4.190.0670.04719.29
5.4.180.1000.05319.06
5.4.170.0900.06019.05
5.4.160.0700.06718.82
5.4.150.0830.05319.20
5.4.140.0570.06016.35
5.4.130.0600.05016.35
5.4.120.0830.04716.48
5.4.110.0900.05316.45
5.4.100.0770.06016.60
5.4.90.0970.05716.58
5.4.80.0970.05016.47
5.4.70.0370.03716.35
5.4.60.0330.06016.30
5.4.50.0070.06716.43
5.4.40.0200.05316.27
5.4.30.0270.06316.53
5.4.20.0270.06016.42

preferences:
44.64 ms | 401 KiB | 5 Q