3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class a { function a() { echo "CONSTRUCTOR CALLED\r\n"; } function b($var) { return $var . 'x'; } } class c { static function w() { echo "w".$PHP_EOL; } } $cc = new C(); $cc.w(); //print_r(array_map(array('a', 'b'), array('a', 'b')));

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.0110.00416.63
8.3.50.0090.00921.21
8.3.40.0110.00418.65
8.3.30.0090.00618.83
8.3.20.0070.00020.39
8.3.10.0080.00023.43
8.3.00.0080.00019.56
8.2.180.0120.00316.63
8.2.170.0030.01022.96
8.2.160.0110.00320.30
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00417.47
8.2.110.0000.00922.02
8.2.100.0040.00717.50
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00817.80
8.2.50.0070.00318.07
8.2.40.0060.00319.34
8.2.30.0000.00819.67
8.2.20.0040.00417.67
8.2.10.0080.00017.88
8.2.00.0040.00418.00
8.1.280.0090.00925.92
8.1.270.0070.00020.26
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.34
8.1.230.0070.00417.42
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0090.00017.36
8.1.190.0030.00617.23
8.1.180.0070.00018.10
8.1.170.0050.00318.41
8.1.160.0030.00321.91
8.1.150.0000.00718.77
8.1.140.0040.00417.40
8.1.130.0070.00017.56
8.1.120.0040.00417.45
8.1.110.0040.00417.32
8.1.100.0040.00417.46
8.1.90.0000.00717.45
8.1.80.0050.00317.29
8.1.70.0040.00417.45
8.1.60.0030.00517.54
8.1.50.0080.00017.50
8.1.40.0040.00417.51
8.1.30.0000.00917.68
8.1.20.0000.00817.73
8.1.10.0040.00417.49
8.1.00.0000.00817.48
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0030.00317.07
8.0.260.0030.00317.11
8.0.250.0000.00716.95
8.0.240.0000.00616.98
8.0.230.0030.00616.85
8.0.220.0000.00716.95
8.0.210.0040.00416.93
8.0.200.0050.00316.99
8.0.190.0080.00016.95
8.0.180.0070.00016.96
8.0.170.0000.00816.92
8.0.160.0050.00316.75
8.0.150.0030.00516.89
8.0.140.0040.00416.86
8.0.130.0030.00513.34
8.0.120.0070.00016.96
8.0.110.0030.00316.80
8.0.100.0000.00816.84
8.0.90.0000.00716.84
8.0.80.0030.01216.88
8.0.70.0040.00416.88
8.0.60.0030.00316.90
8.0.50.0000.00716.93
8.0.30.0060.01217.09
8.0.20.0090.00917.40
8.0.10.0040.00417.07
8.0.00.0080.00916.53
7.4.330.0050.00015.08
7.4.320.0040.00716.56
7.4.300.0070.00016.59
7.4.290.0030.00316.53
7.4.280.0030.00516.55
7.4.270.0070.00016.57
7.4.260.0050.00216.59
7.4.250.0050.00216.56
7.4.240.0020.00516.61
7.4.230.0000.00716.62
7.4.220.0110.00716.62
7.4.210.0060.00916.64
7.4.200.0000.00716.42
7.4.160.0150.00016.53
7.4.150.0140.00417.40
7.4.140.0170.01617.86
7.4.130.0090.01116.56
7.4.120.0100.00916.50
7.4.110.0140.00616.52
7.4.100.0100.00716.48
7.4.90.0130.00316.60
7.4.80.0120.00619.39
7.4.70.0040.01316.47
7.4.60.0130.00316.60
7.4.50.0060.00316.33
7.4.40.0130.00316.42
7.4.30.0150.00416.70
7.4.00.0080.00414.78
7.3.330.0000.00513.05
7.3.320.0030.00513.13
7.3.310.0030.00416.40
7.3.300.0060.00016.31
7.3.290.0110.00616.28
7.3.280.0080.00916.30
7.3.270.0100.00717.40
7.3.260.0100.00716.28
7.3.250.0110.00916.32
7.3.240.0060.01016.41
7.3.230.0100.00716.39
7.3.210.0150.00316.39
7.3.200.0130.01016.58
7.3.190.0130.01016.19
7.3.180.0090.00716.19
7.3.170.0040.01216.46
7.3.160.0040.01216.38
7.2.330.0120.00616.59
7.2.320.0060.01216.36
7.2.310.0130.00316.64
7.2.300.0090.00916.52
7.2.290.0120.00616.68
7.2.80.0040.01116.30
7.2.60.0040.01116.71
7.2.00.0030.00619.27
7.1.200.0050.00515.84
7.1.100.0080.00317.91
7.1.70.0060.00317.06
7.1.60.0070.01619.17
7.1.50.0240.01434.45
7.1.00.0030.07722.32
7.0.200.0040.00416.33
7.0.60.0200.07319.83
7.0.50.0100.03317.96
7.0.40.0030.09720.24
7.0.30.0300.08020.24
7.0.20.0200.08320.06
7.0.10.0070.08320.26
7.0.00.0000.09320.23
5.6.280.0030.03020.93
5.6.210.0030.08720.66
5.6.200.0070.07018.18
5.6.190.0130.04720.41
5.6.180.0330.07020.62
5.6.170.0100.04720.56
5.6.160.0070.07320.44
5.6.150.0070.07718.25
5.6.140.0030.06718.14
5.6.130.0070.08018.11
5.6.120.0130.08320.90
5.6.110.0070.05720.99
5.6.100.0070.03721.03
5.6.90.0130.07720.94
5.6.80.0070.03720.53
5.6.70.4130.04320.41
5.5.350.0000.03720.47
5.5.340.0070.03717.98
5.5.330.0030.04720.21
5.5.320.0430.06320.27
5.5.310.0300.07720.41
5.5.300.0000.04717.98
5.5.290.0030.07717.98
5.5.280.0170.05720.83
5.5.270.0030.04320.98
5.5.260.0100.08320.90
5.5.250.0100.07720.59
5.5.240.0070.06320.27
5.4.450.0200.04319.41
5.4.440.0200.07319.16
5.4.430.0170.05719.55
5.4.420.0230.07019.16
5.4.410.0170.07019.39
5.4.400.0170.07319.31
5.4.390.0170.07318.86
5.4.380.0070.06319.05
5.4.370.0170.06319.02
5.4.360.0230.03719.20
5.4.350.0200.07019.20
5.4.340.0130.03719.06
5.4.320.0200.03719.08
5.4.310.0130.07319.14
5.4.300.0100.04719.23
5.4.290.0070.05019.30
5.4.280.0170.07319.06
5.4.270.0200.04718.84
5.4.260.0270.06318.86
5.4.250.0100.04319.16
5.4.240.0170.03319.11
5.4.230.0200.06318.98
5.4.220.0130.07719.07
5.4.210.0200.06719.16
5.4.200.0200.06319.15
5.4.190.0200.03719.07
5.4.180.0230.06318.83
5.4.170.0100.06019.13
5.4.160.0230.06019.12
5.4.150.0170.04318.98
5.4.140.0200.06716.35
5.4.130.0230.05716.43
5.4.120.0130.04316.38
5.4.110.0130.03316.47
5.4.100.0230.07316.30
5.4.90.0230.04316.50
5.4.80.0100.06316.39

preferences:
49.57 ms | 401 KiB | 5 Q