3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { $a = 1 } namespace Foo2 { echo $a; }

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)
5.6.80.0130.07320.39
5.5.240.0070.07720.27
5.4.400.0400.05018.81
5.4.390.0270.04718.62
5.4.380.0230.05718.69
5.4.370.0270.06018.59
5.4.360.0300.05318.53
5.4.350.1030.07018.47
5.4.340.0130.06018.79
5.4.320.1430.06318.54
5.4.310.0200.04318.67
5.4.300.0130.05018.76
5.4.290.0370.06018.71
5.4.280.1000.05318.68
5.4.270.0900.05718.55
5.4.260.2470.06318.71
5.4.250.1070.06018.71
5.4.240.1130.04718.69
5.4.230.0970.04718.70
5.4.220.2370.05718.61
5.4.210.1230.05718.76
5.4.200.0930.07316.80
5.4.190.0900.06718.79
5.4.180.1730.06318.70
5.4.170.0900.05718.67
5.4.160.0970.06018.73
5.4.150.0800.06318.72
5.4.140.3600.05316.31
5.4.130.1070.04316.34
5.4.120.0870.05316.34
5.4.110.0870.05016.25
5.4.100.0930.05016.20
5.4.90.0900.05716.25
5.4.80.0870.05016.27
5.4.70.0770.06016.30
5.4.60.1170.05716.39
5.4.50.1070.06316.23
5.4.40.2330.05716.39
5.4.30.1130.05016.29
5.4.20.0970.05316.27
5.4.10.0870.04716.36
5.4.00.0900.05015.71
5.3.290.1000.04314.66
5.3.280.0930.05014.56
5.3.270.0730.06314.54
5.3.260.0370.06014.60
5.3.250.0100.05314.59
5.3.240.2770.06314.61
5.3.230.0800.06014.63
5.3.220.0930.06014.52
5.3.210.0900.06714.56
5.3.200.1300.06014.50
5.3.190.0900.05014.54
5.3.180.1000.04314.49
5.3.170.1000.05714.55
5.3.160.1270.05714.61
5.3.150.1130.07714.54
5.3.140.1030.06314.51
5.3.130.0700.05714.58
5.3.120.3070.04714.44
5.3.110.3970.06714.55
5.3.100.0800.05313.95
5.3.90.0970.04314.05
5.3.80.1070.05014.00
5.3.70.1000.06713.95
5.3.60.0930.07013.92
5.3.50.0500.07713.87
5.3.40.0370.06313.86
5.3.30.2600.04313.84
5.3.20.0800.05013.62
5.3.10.2030.05013.76
5.3.00.2530.05013.53
5.2.170.0530.05011.09
5.2.160.0670.04711.20
5.2.150.1130.06711.13
5.2.140.0670.05311.13
5.2.130.0830.04311.23
5.2.120.1070.04711.16
5.2.110.0970.04711.16
5.2.100.0800.05311.14
5.2.90.2400.04711.14
5.2.80.0830.05711.01
5.2.70.0700.05011.07
5.2.60.0670.06711.09
5.2.50.0800.04710.99
5.2.40.0800.04010.95
5.2.30.0730.04010.92
5.2.20.0800.04011.10
5.2.10.0570.04010.83
5.2.00.0530.04010.86
5.1.60.0570.03710.13
5.1.50.0600.03710.13
5.1.40.0570.04010.01
5.1.30.0730.03010.39
5.1.20.0570.04310.41
5.1.10.0570.04010.05
5.1.00.0470.03710.12
5.0.50.0330.0338.52
5.0.40.0270.0438.40
5.0.30.0430.0538.29
5.0.20.0300.0408.21
5.0.10.0370.0278.20
5.0.00.0370.0608.23
4.4.90.0370.0335.91
4.4.80.0270.0375.93
4.4.70.0300.0305.81
4.4.60.0300.0275.86
4.4.50.0270.0235.88
4.4.40.0330.0375.87
4.4.30.0270.0205.81
4.4.20.0330.0275.96
4.4.10.0300.0305.93
4.4.00.0270.0375.85
4.3.110.0270.0275.83
4.3.100.0230.0275.78
4.3.90.0300.0275.82
4.3.80.0300.0305.87
4.3.70.0330.0305.91
4.3.60.0330.0275.81
4.3.50.0400.0305.78
4.3.40.0230.0305.79
4.3.30.0170.0234.58
4.3.20.0170.0234.53
4.3.10.0100.0204.52
4.3.00.0130.0207.41

preferences:
144.53 ms | 1394 KiB | 7 Q