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; } public function f() { echo "f".$PHP_EOL; } } $cc = new c; //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.70.0110.00416.48
8.3.60.0180.00016.36
8.3.50.0180.00321.19
8.3.40.0110.00418.71
8.3.30.0110.00418.57
8.3.20.0040.00420.22
8.3.10.0070.00023.54
8.3.00.0050.00319.56
8.2.180.0110.01116.50
8.2.170.0070.00722.96
8.2.160.0090.00420.57
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00317.50
8.2.110.0000.00922.15
8.2.100.0040.00817.50
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0000.00917.37
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0000.00821.17
8.2.30.0050.00219.70
8.2.20.0040.00417.58
8.2.10.0000.00717.89
8.2.00.0050.00318.04
8.1.280.0070.01425.92
8.1.270.0050.00320.25
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.48
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.13
8.1.190.0030.00517.22
8.1.180.0000.00918.10
8.1.170.0000.00918.47
8.1.160.0040.00422.01
8.1.150.0040.00418.78
8.1.140.0000.00817.39
8.1.130.0030.00317.68
8.1.120.0070.00017.44
8.1.110.0070.00017.31
8.1.100.0000.00717.36
8.1.90.0000.00717.40
8.1.80.0040.00417.28
8.1.70.0000.00817.37
8.1.60.0060.00317.38
8.1.50.0040.00417.35
8.1.40.0040.00417.43
8.1.30.0040.00417.50
8.1.20.0000.00817.59
8.1.10.0060.00317.48
8.1.00.0070.00017.45
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0070.00018.37
8.0.270.0030.00317.20
8.0.260.0030.00317.14
8.0.250.0030.00316.88
8.0.240.0030.00316.91
8.0.230.0050.00316.86
8.0.220.0000.00716.82
8.0.210.0070.00016.79
8.0.200.0040.00416.88
8.0.190.0040.00416.91
8.0.180.0000.00716.85
8.0.170.0050.00316.83
8.0.160.0080.00016.79
8.0.150.0040.00416.75
8.0.140.0040.00416.75
8.0.130.0040.00413.34
8.0.120.0040.00416.79
8.0.110.0000.00716.86
8.0.100.0040.00316.89
8.0.90.0030.00316.70
8.0.80.0070.00716.83
8.0.70.0040.00416.68
8.0.60.0000.00816.84
8.0.50.0040.00416.88
8.0.30.0100.00917.11
8.0.20.0110.00717.40
8.0.10.0070.00016.79
8.0.00.0100.01016.71
7.4.330.0000.00615.08
7.4.320.0000.00616.36
7.4.300.0030.00316.51
7.4.290.0000.01016.33
7.4.280.0040.00416.43
7.4.270.0000.00616.48
7.4.260.0040.00416.52
7.4.250.0000.00716.49
7.4.240.0010.00616.50
7.4.230.0030.00316.43
7.4.220.0070.01116.47
7.4.210.0070.00716.49
7.4.200.0000.00716.36
7.4.160.0070.01016.33
7.4.150.0140.00317.40
7.4.140.0120.00817.86
7.4.130.0110.00616.35
7.4.120.0090.00916.52
7.4.110.0140.00316.14
7.4.100.0060.01016.39
7.4.90.0030.01716.52
7.4.80.0130.00319.39
7.4.70.0100.00716.42
7.4.60.0030.01316.39
7.4.50.0000.00416.61
7.4.40.0100.01016.53
7.4.30.0110.01116.51
7.4.00.0070.00714.71
7.3.330.0030.00313.03
7.3.320.0030.00313.27
7.3.310.0070.00016.06
7.3.300.0030.00316.07
7.3.290.0080.00616.25
7.3.280.0120.00816.22
7.3.270.0120.00517.40
7.3.260.0130.00316.21
7.3.250.0060.01116.34
7.3.240.0100.01016.44
7.3.230.0120.00616.39
7.3.210.0100.00716.49
7.3.200.0150.00616.23
7.3.190.0060.00916.18
7.3.180.0120.01116.33
7.3.170.0100.01116.27
7.3.160.0160.00016.34
7.2.330.0120.00616.61
7.2.320.0120.01216.66
7.2.310.0170.00016.59
7.2.300.0120.00916.36
7.2.290.0090.00916.18
7.2.60.0080.00616.84
7.2.00.0040.00819.25
7.1.200.0100.00315.72
7.1.100.0000.01118.06
7.1.70.0060.00917.06
7.1.60.0030.02019.17
7.1.50.0270.00734.76
7.1.00.0070.06722.43
7.0.200.0000.00716.55
7.0.60.0070.08319.93
7.0.50.0030.04017.90
7.0.40.0070.09020.21
7.0.30.0330.07020.08
7.0.20.0200.08020.21
7.0.10.0070.08720.30
7.0.00.0070.08320.29
5.6.280.0030.05320.79
5.6.210.0100.06720.55
5.6.200.0130.08018.29
5.6.190.0030.05020.43
5.6.180.0400.06020.48
5.6.170.0200.05020.39
5.6.160.0170.07720.45
5.6.150.0070.05318.14
5.6.140.0100.06018.19
5.6.130.0030.06318.20
5.6.120.0130.07721.05
5.6.110.0130.06321.12
5.6.100.0030.04021.00
5.6.90.0030.08721.13
5.6.80.0000.04320.39
5.6.70.4330.03720.40
5.5.350.0000.03720.36
5.5.340.0130.07018.07
5.5.330.0070.03720.27
5.5.320.0330.08020.34
5.5.310.0300.07720.32
5.5.300.0000.06317.98
5.5.290.0000.06318.03
5.5.280.0270.06720.97
5.5.270.0100.04320.79
5.5.260.0070.06720.84
5.5.250.0070.07720.46
5.5.240.0030.08020.16
5.4.450.0270.07019.32
5.4.440.0330.07019.41
5.4.430.0370.05719.41
5.4.420.0270.07319.31
5.4.410.0300.07319.42
5.4.400.0330.07018.99
5.4.390.0300.04718.86
5.4.380.0330.04718.95
5.4.370.0370.06318.99
5.4.360.0330.07319.09
5.4.350.0270.06319.09
5.4.340.0330.07019.19
5.4.320.0300.06719.00
5.4.310.0370.06319.19
5.4.300.0270.05718.99
5.4.290.0330.06319.05
5.4.280.0300.07719.13
5.4.270.0400.04719.21
5.4.260.0430.06319.14
5.4.250.0300.07319.30
5.4.240.0370.06019.31
5.4.230.0370.05719.13
5.4.220.0300.04718.98
5.4.210.0370.07019.21
5.4.200.0400.05319.15
5.4.190.0300.04319.13
5.4.180.0330.07319.05
5.4.170.0400.06318.93
5.4.160.0300.05019.11
5.4.150.0330.06318.99
5.4.140.0300.06716.57
5.4.130.0330.06716.33
5.4.120.0330.05716.44
5.4.110.0300.04716.32
5.4.100.0330.06716.56
5.4.90.0370.05716.50
5.4.80.0300.04016.48

preferences:
49.55 ms | 401 KiB | 5 Q