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; } function f() { echo "f".$PHP_EOL; } } $cc = new c(); $cc.f(); //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.0040.01116.75
8.3.50.0150.00620.96
8.3.40.0070.00718.71
8.3.30.0070.00718.77
8.3.20.0040.00420.46
8.3.10.0050.00323.60
8.3.00.0030.00519.68
8.2.180.0070.00716.59
8.2.170.0030.01222.96
8.2.160.0060.01520.48
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00817.63
8.2.110.0000.00922.25
8.2.100.0030.00917.75
8.2.90.0050.00319.18
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0030.00718.07
8.2.40.0000.00819.38
8.2.30.0000.00919.84
8.2.20.0050.00317.59
8.2.10.0040.00417.87
8.2.00.0000.00717.95
8.1.280.0070.00725.92
8.1.270.0040.00420.36
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00022.56
8.1.230.0040.00717.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0000.00817.00
8.1.180.0000.00918.10
8.1.170.0040.00418.43
8.1.160.0000.00822.00
8.1.150.0050.00318.78
8.1.140.0040.00417.38
8.1.130.0000.00717.64
8.1.120.0040.00417.45
8.1.110.0000.00717.39
8.1.100.0040.00417.46
8.1.90.0040.00417.42
8.1.80.0040.00417.28
8.1.70.0000.00717.28
8.1.60.0050.00217.41
8.1.50.0040.00417.48
8.1.40.0050.00317.47
8.1.30.0080.00017.66
8.1.20.0040.00417.69
8.1.10.0070.00017.54
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0000.00717.21
8.0.260.0030.00317.13
8.0.250.0000.00717.00
8.0.240.0080.00016.96
8.0.230.0030.00616.97
8.0.220.0030.00316.77
8.0.210.0030.00516.92
8.0.200.0070.00016.99
8.0.190.0000.00716.84
8.0.180.0030.00616.81
8.0.170.0040.00416.86
8.0.160.0040.00417.00
8.0.150.0000.00716.81
8.0.140.0070.00016.84
8.0.130.0050.00313.27
8.0.120.0030.00516.90
8.0.110.0000.00716.75
8.0.100.0030.00317.00
8.0.90.0080.00017.00
8.0.80.0100.00716.93
8.0.70.0000.00716.88
8.0.60.0080.00016.85
8.0.50.0070.00016.79
8.0.30.0130.00716.83
8.0.20.0060.01217.40
8.0.10.0040.00416.88
8.0.00.0090.00916.73
7.4.330.0030.00315.08
7.4.320.0060.00016.42
7.4.300.0030.00316.50
7.4.290.0040.00716.64
7.4.280.0030.00516.48
7.4.270.0030.00316.65
7.4.260.0000.00716.38
7.4.250.0040.00416.55
7.4.240.0020.00516.54
7.4.230.0000.00716.53
7.4.220.0050.01616.61
7.4.210.0060.01216.56
7.4.200.0000.00716.63
7.4.160.0090.01216.39
7.4.150.0150.00317.40
7.4.140.0090.01617.86
7.4.130.0070.00916.57
7.4.120.0110.00616.58
7.4.110.0070.01116.61
7.4.100.0130.00316.50
7.4.90.0040.01416.32
7.4.80.0160.00319.39
7.4.70.0140.00316.43
7.4.60.0090.00616.47
7.4.50.0000.00816.45
7.4.40.0030.01416.59
7.4.30.0040.01216.68
7.4.00.0070.00715.06
7.3.330.0000.00613.16
7.3.320.0060.00013.13
7.3.310.0080.00016.33
7.3.300.0030.00316.15
7.3.290.0090.00516.23
7.3.280.0070.01016.28
7.3.270.0130.00617.40
7.3.260.0170.00016.18
7.3.250.0110.00516.44
7.3.240.0120.00916.50
7.3.230.0120.00616.52
7.3.210.0080.00816.31
7.3.200.0110.01116.23
7.3.190.0130.00316.54
7.3.180.0130.00316.43
7.3.170.0100.00616.30
7.3.160.0040.01516.38
7.2.330.0030.01316.64
7.2.320.0130.00616.56
7.2.310.0090.00616.61
7.2.300.0040.01816.38
7.2.290.0100.00716.65
7.2.80.0100.00316.43
7.2.60.0060.00616.96
7.2.00.0090.00019.31
7.1.200.0030.00915.45
7.1.100.0070.00718.14
7.1.70.0040.00417.07
7.1.60.0130.01019.17
7.1.50.0260.01334.70
7.1.00.0030.07722.30
7.0.200.0000.01016.51
7.0.60.0030.04019.83
7.0.50.0070.08317.73
7.0.40.0030.05020.11
7.0.30.0300.07320.20
7.0.20.0300.06320.15
7.0.10.0000.07720.08
7.0.00.0000.06320.12
5.6.280.0030.03021.11
5.6.210.0030.08720.55
5.6.200.0100.04718.19
5.6.190.0130.04720.55
5.6.180.0000.05320.57
5.6.170.0230.08320.57
5.6.160.0070.08320.48
5.6.150.0030.08718.18
5.6.140.0070.03718.18
5.6.130.0070.03718.18
5.6.120.0000.06321.15
5.6.110.0000.05720.99
5.6.100.0130.07321.14
5.6.90.0000.04721.02
5.6.80.0030.03720.41
5.6.70.4700.04320.38
5.5.350.0130.05020.34
5.5.340.0000.04017.99
5.5.330.0100.04020.31
5.5.320.0000.08320.41
5.5.310.0400.06720.34
5.5.300.0100.07717.97
5.5.290.0070.08317.99
5.5.280.0100.06720.90
5.5.270.0070.05320.77
5.5.260.0100.04320.88
5.5.250.0130.06020.71
5.5.240.0230.07320.36
5.4.450.0900.06019.52
5.4.440.0900.05719.60
5.4.430.0670.05719.40
5.4.420.0830.04319.34
5.4.410.0900.07019.28
5.4.400.0600.06319.27
5.4.390.0830.05019.25
5.4.380.0700.05019.08
5.4.370.1000.04719.05
5.4.360.0770.05018.92
5.4.350.0830.05719.27
5.4.340.0870.05319.06
5.4.320.0900.05019.22
5.4.310.0770.05019.08
5.4.300.0600.06019.21
5.4.290.0900.05719.08
5.4.280.0770.05319.30
5.4.270.0870.05019.25
5.4.260.0800.04319.01
5.4.250.0630.05719.05
5.4.240.0770.05018.91
5.4.230.0800.04318.87
5.4.220.0730.05719.25
5.4.210.0600.06019.24
5.4.200.0730.05019.07
5.4.190.0770.07719.05
5.4.180.0670.05319.23
5.4.170.0670.05319.19
5.4.160.0730.04719.06
5.4.150.0770.05318.98
5.4.140.0730.06716.51
5.4.130.0800.06016.40
5.4.120.0670.05016.47
5.4.110.0730.06716.48
5.4.100.0700.04716.24
5.4.90.0730.04316.60
5.4.80.0730.04016.49
5.4.70.0300.06016.39
5.4.60.0330.05716.38
5.4.50.0030.06316.16
5.4.40.0030.07316.50
5.4.30.0000.04316.32
5.4.20.0070.04016.42

preferences:
32.56 ms | 401 KiB | 5 Q