3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "moro"; function b() use ($a) { echo $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)
5.4.390.0170.05718.59
5.4.380.0200.05718.55
5.4.370.0270.05018.63
5.4.360.0230.04718.73
5.4.350.0170.05718.51
5.4.340.0230.05018.74
5.4.320.0230.05018.75
5.4.310.0270.04718.72
5.4.300.0300.04318.50
5.4.290.0270.04718.46
5.4.280.0370.03718.50
5.4.270.0200.05318.75
5.4.260.0300.04718.77
5.4.250.0400.05018.55
5.4.240.0370.07018.77
5.4.230.0200.05318.71
5.4.220.0230.05318.48
5.4.210.0270.05018.55
5.4.200.0200.05316.57
5.4.190.0100.06318.57
5.4.180.0100.06318.71
5.4.170.0230.05018.44
5.4.160.0200.05018.52
5.4.150.0270.04718.54
5.4.140.0270.04316.20
5.4.130.0270.04316.21
5.4.120.0230.05016.30
5.4.110.0230.04716.43
5.4.100.0200.05016.32
5.4.90.0270.04716.43
5.4.80.0170.05016.41
5.4.70.0100.05016.19
5.4.60.0100.05016.21
5.4.50.0170.04716.14
5.4.40.0130.06016.30
5.4.30.0200.05016.38
5.4.20.0130.05316.22
5.4.10.0100.05316.29
5.4.00.0130.05315.87
5.3.290.0170.06314.71
5.3.280.0170.05314.72
5.3.270.0130.06014.74
5.3.260.0270.05314.73
5.3.250.0300.04314.64
5.3.240.0170.05714.73
5.3.230.0230.05014.77
5.3.220.0030.07314.75
5.3.210.0270.05014.70
5.3.200.0230.05014.56
5.3.190.0200.05714.58
5.3.180.0230.04714.68
5.3.170.0300.04314.77
5.3.160.0230.05014.67
5.3.150.0230.05314.61
5.3.140.0170.05014.66
5.3.130.0170.05714.75
5.3.120.0270.04714.53
5.3.110.0230.05314.58
5.3.100.0270.04714.26
5.3.90.0170.05314.07
5.3.80.0170.05014.14
5.3.70.0230.04714.16
5.3.60.0270.04013.98
5.3.50.0230.04713.95
5.3.40.0130.05714.15
5.3.30.0230.05013.92
5.3.20.0130.05713.73
5.3.10.0300.03713.71
5.3.00.0200.04713.76
5.2.170.0100.05011.24
5.2.160.0130.04011.24
5.2.150.0200.04311.18
5.2.140.0230.04711.18
5.2.130.0130.04311.19
5.2.120.0270.03311.22
5.2.110.0270.03011.15
5.2.100.0130.04311.15
5.2.90.0130.05011.10
5.2.80.0170.04311.16
5.2.70.0130.04711.32
5.2.60.0270.04011.12
5.2.50.0100.04711.11
5.2.40.0200.03311.02
5.2.30.0100.04310.96
5.2.20.0130.04011.09
5.2.10.0200.03310.91
5.2.00.0330.03310.81
5.1.60.0130.04310.01
5.1.50.0170.03310.02
5.1.40.0100.04010.09
5.1.30.0100.04310.41
5.1.20.0100.04310.34
5.1.10.0230.03010.10
5.1.00.0200.03310.11
5.0.50.0070.0338.66
5.0.40.0070.0308.61
5.0.30.0170.0438.26
5.0.20.0170.0238.22
5.0.10.0100.0308.19
5.0.00.0100.0438.34
4.4.90.0070.0275.92
4.4.80.0030.0275.88
4.4.70.0100.0205.86
4.4.60.0070.0305.89
4.4.50.0100.0235.98
4.4.40.0070.0405.91
4.4.30.0130.0205.92
4.4.20.0100.0205.93
4.4.10.0030.0275.93
4.4.00.0070.0375.95
4.3.110.0030.0275.80
4.3.100.0130.0175.86
4.3.90.0000.0275.79
4.3.80.0100.0305.91
4.3.70.0130.0235.79
4.3.60.0130.0175.91
4.3.50.0070.0235.91
4.3.40.0070.0375.88
4.3.30.0030.0234.56
4.3.20.0070.0204.62
4.3.10.0100.0174.48
4.3.00.0030.0308.73

preferences:
140.75 ms | 1394 KiB | 7 Q