3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function testing($output) { echo $output; } } $class = new Test(); $exec = array($class, "testing"); $exec("hello") echo "\n"; call_user_func_array($exec, array("hello"));

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)
7.1.60.0730.01733.00
7.1.50.0800.00732.83
7.1.40.0770.02032.45
7.1.30.0770.01032.53
7.1.20.0870.01332.79
7.1.10.1070.00314.55
7.1.00.0870.01014.64
7.0.200.0730.00714.78
7.0.190.0630.00714.61
7.0.180.1170.00314.43
7.0.170.0830.00714.13
7.0.160.0800.00714.12
7.0.150.1070.00014.32
7.0.140.0930.00314.25
7.0.130.1070.00314.66
7.0.120.0830.00714.44
7.0.110.0970.00714.39
7.0.100.0770.01014.30
7.0.90.0700.00314.22
7.0.80.0630.00714.27
7.0.70.0070.00714.34
7.0.60.1100.00714.07
7.0.50.0770.01014.31
7.0.40.0970.01014.55
7.0.30.1000.01014.43
7.0.20.0970.01314.36
7.0.10.0930.01014.44
7.0.00.1000.01314.38
5.6.300.0100.05321.01
5.6.290.0100.05321.00
5.6.280.0130.05320.99
5.6.270.0070.05720.88
5.6.260.0100.05320.92
5.6.250.0070.05720.80
5.6.240.0100.05720.82
5.6.230.0070.06020.98
5.6.220.0100.06320.89
5.6.210.0270.06321.07
5.6.200.0100.08020.79
5.6.190.0030.07020.75
5.6.180.0100.06720.75
5.6.170.0030.08320.75
5.6.160.0100.07720.78
5.6.150.0100.08020.72
5.6.140.0170.05720.77
5.6.130.0070.08020.77
5.6.120.0100.05720.94
5.6.110.0030.07020.96
5.6.100.0100.05720.87
5.6.90.0100.06020.88
5.6.80.0100.06020.15
5.6.70.0100.07320.25
5.6.60.0130.05720.15
5.6.50.0100.05020.27
5.6.40.0130.05720.11
5.6.30.0030.06020.13
5.6.20.0130.05020.24
5.6.10.0130.05020.35
5.6.00.0200.05020.14
5.5.380.0130.05017.62
5.5.370.0030.06717.55
5.5.360.0070.07317.51
5.5.350.0130.06317.45
5.5.340.0170.06718.02
5.5.330.0030.06317.80
5.5.320.0130.07017.80
5.5.310.0030.06317.80
5.5.300.0100.07717.73
5.5.290.0030.07717.71
5.5.280.0130.07018.13
5.5.270.0070.06017.94
5.5.260.0200.04318.02
5.5.250.0170.05717.84
5.5.240.0130.07017.18
5.5.230.0100.07017.49
5.5.220.0070.05317.40
5.5.210.0170.05017.41
5.5.200.0070.05717.35
5.5.190.0100.05017.38
5.5.180.0100.05317.38
5.5.160.0100.06717.47
5.5.150.0030.06317.46
5.5.140.0170.04717.48
5.5.130.0100.05017.30
5.5.120.0130.05717.38
5.5.110.0070.06717.38
5.5.100.0070.06017.30
5.5.90.0030.06017.27
5.5.80.0070.06717.23
5.5.70.0070.05717.26
5.5.60.0070.05317.27
5.5.50.0100.05017.28
5.5.40.0000.06017.04
5.5.30.0030.06317.19
5.5.20.0070.06017.27
5.5.10.0030.06317.27
5.5.00.0030.06017.27
5.4.450.0130.05719.28
5.4.440.0030.07019.42
5.4.430.0070.05319.16
5.4.420.0070.05319.47
5.4.410.0000.06019.20
5.4.400.0200.05719.00
5.4.390.0030.07019.24
5.4.380.0030.05719.24
5.4.370.0130.04719.02
5.4.360.0070.06018.91
5.4.350.0070.05018.84
5.4.340.0130.05019.14
5.4.320.0170.06319.00
5.4.310.0170.04319.01
5.4.300.0000.07718.92
5.4.290.0200.04318.99
5.4.280.0030.08019.07
5.4.270.0030.07719.10
5.4.260.0230.04318.95
5.4.250.0130.06719.23
5.4.240.0130.06719.00
5.4.230.0130.04719.05
5.4.220.0070.05319.00
5.4.210.0100.05318.98
5.4.200.0170.04319.14
5.4.190.0030.05718.94
5.4.180.0130.04718.98
5.4.170.0170.05319.00
5.4.160.0130.04718.93
5.4.150.0170.04719.14
5.4.140.0200.04716.76
5.4.130.0100.04316.71
5.4.120.0130.04316.77
5.4.110.0070.05016.63
5.4.100.0030.06716.70
5.4.90.0170.04316.70
5.4.80.0200.05716.57
5.4.70.0100.06716.68
5.4.60.0100.06316.55
5.4.50.0000.06016.39
5.4.40.0030.07016.70
5.4.30.0030.05316.48
5.4.20.0100.04716.39
5.4.10.0000.08016.55
5.4.00.0100.05315.89
5.3.290.0100.07014.86
5.3.280.0070.05014.64
5.3.270.0030.06014.49
5.3.260.0070.06314.79
5.3.250.0070.05714.88
5.3.240.0070.06014.67
5.3.230.0100.04714.87
5.3.220.0100.06014.84
5.3.210.0130.06714.85
5.3.200.0100.05014.85
5.3.190.0100.06714.87
5.3.180.0070.07314.85
5.3.170.0100.07314.78
5.3.160.0130.06314.60
5.3.150.0100.06314.74
5.3.140.0130.05014.84
5.3.130.0170.04714.67
5.3.120.0100.05714.42
5.3.110.0100.05014.60
5.3.100.0170.04714.31
5.3.90.0030.06313.90
5.3.80.0100.06314.14
5.3.70.0130.06314.19
5.3.60.0200.05314.30
5.3.50.0230.05014.01
5.3.40.0030.07014.07
5.3.30.0030.07013.97
5.3.20.0030.07013.88
5.3.10.0100.06313.93
5.3.00.0070.06713.90
5.2.170.0000.05711.36
5.2.160.0070.04311.41
5.2.150.0100.04011.35
5.2.140.0100.04011.32
5.2.130.0070.05311.32
5.2.120.0070.05311.31
5.2.110.0100.05011.15
5.2.100.0000.04311.21
5.2.90.0100.03711.15
5.2.80.0130.03310.96
5.2.70.0130.03311.37
5.2.60.0100.04711.23
5.2.50.0100.05010.90
5.2.40.0000.05311.29
5.2.30.0030.05711.18
5.2.20.0070.04711.13
5.2.10.0030.05310.88
5.2.00.0100.04711.00
5.1.60.0130.03710.25
5.1.50.0030.0479.88
5.1.40.0070.03310.02
5.1.30.0000.05010.55
5.1.20.0100.03010.54
5.1.10.0070.03710.38
5.1.00.0070.03310.36
5.0.50.0100.0309.42
5.0.40.0030.0279.42
5.0.30.0030.0539.42
5.0.20.0030.0339.42
5.0.10.0000.0409.42
5.0.00.0030.0409.42
4.4.90.0030.0239.42
4.4.80.0070.0209.42
4.4.70.0030.0279.42
4.4.60.0030.0279.42
4.4.50.0030.0279.42
4.4.40.0030.0439.42
4.4.30.0000.0209.42
4.4.20.0030.0209.42
4.4.10.0030.0209.42
4.4.00.0070.0309.42
4.3.110.0000.0239.42
4.3.100.0030.0279.42
4.3.90.0000.0309.42
4.3.80.0000.0339.42
4.3.70.0070.0179.42
4.3.60.0030.0209.42
4.3.50.0100.0139.42
4.3.40.0000.0379.42
4.3.30.0000.0239.42
4.3.20.0000.0239.42
4.3.10.0000.0279.42
4.3.00.0000.0309.42

preferences:
139.77 ms | 1394 KiB | 7 Q