3v4l.org

run code in 300+ PHP versions simultaneously
<?php function quote(&$string) { $string = "'$string'"; return $string; } quote('我');

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.0070.01416.63
8.3.50.0150.00721.97
8.3.40.0070.01118.74
8.3.30.0150.00619.02
8.3.20.0050.00320.30
8.3.10.0000.00821.96
8.3.00.0000.00718.96
8.2.180.0120.00316.50
8.2.170.0080.00622.96
8.2.160.0100.00722.26
8.2.150.0060.00324.18
8.2.140.0120.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.52
8.2.110.0090.00021.96
8.2.100.0090.00018.76
8.1.280.0140.00325.92
8.1.270.0080.00020.62
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0040.01418.50
8.1.230.0060.00318.30
5.4.390.0200.05718.77
5.4.380.0300.04318.68
5.4.370.0230.06318.73
5.4.360.0230.04718.74
5.4.350.0100.06318.76
5.4.340.0200.05018.59
5.4.320.0130.05718.57
5.4.310.0170.05318.57
5.4.300.0100.06318.75
5.4.290.0070.06718.58
5.4.280.0130.05718.63
5.4.270.0130.06018.57
5.4.260.0200.05718.57
5.4.250.0070.06318.48
5.4.240.0170.05018.56
5.4.230.0030.06718.59
5.4.220.0170.06018.81
5.4.210.0230.04318.57
5.4.200.0270.04016.76
5.4.190.0200.04718.58
5.4.180.0100.06018.65
5.4.170.0200.05718.74
5.4.160.0170.05018.51
5.4.150.0170.05018.60
5.4.140.0200.04716.26
5.4.130.0170.04716.27
5.4.120.0100.05716.42
5.4.110.0200.04716.39
5.4.100.0300.03716.27
5.4.90.0400.04716.29
5.4.80.0230.04316.40
5.4.70.0170.05316.13
5.4.60.0170.04716.23
5.4.50.0300.03716.17
5.4.40.0270.04316.13
5.4.30.0270.04016.38
5.4.20.0270.04316.20
5.4.10.0270.04016.21
5.4.00.0200.05315.71
5.3.290.0200.07714.88
5.3.280.0330.03714.63
5.3.270.0270.06714.80
5.3.260.0230.05314.70
5.3.250.0170.05014.71
5.3.240.0270.04314.64
5.3.230.0200.05314.70
5.3.220.0070.06014.56
5.3.210.0170.06014.71
5.3.200.0270.03714.63
5.3.190.0200.07014.62
5.3.180.0170.05314.69
5.3.170.0170.07314.56
5.3.160.0130.05714.61
5.3.150.0270.05014.53
5.3.140.0200.05014.53
5.3.130.0130.06314.56
5.3.120.0230.06314.71
5.3.110.0200.07014.58
5.3.100.0300.05014.04
5.3.90.0270.05014.14
5.3.80.0130.05314.08
5.3.70.0330.05314.12
5.3.60.0170.05314.05
5.3.50.0270.04713.96
5.3.40.0230.04313.97
5.3.30.0200.05313.96
5.3.20.0200.04713.80
5.3.10.0130.05713.65
5.3.00.0170.05313.68
5.2.170.0170.04311.23
5.2.160.0130.04711.23
5.2.150.0130.05011.15
5.2.140.0200.03711.19
5.2.130.0230.04311.30
5.2.120.0100.06311.07
5.2.110.0100.04311.19
5.2.100.0130.06011.22
5.2.90.0170.06011.08
5.2.80.0230.03711.31
5.2.70.0100.04711.31
5.2.60.0170.03711.04
5.2.50.0200.04711.09
5.2.40.0070.04711.10
5.2.30.0100.05710.98
5.2.20.0030.05011.00
5.2.10.0030.05010.96
5.2.00.0100.04010.84
5.1.60.0000.04310.03
5.1.50.0130.04710.07
5.1.40.0130.03310.17
5.1.30.0130.03310.37
5.1.20.0130.04310.44
5.1.10.0100.03710.08
5.1.00.0130.03710.20
5.0.50.0100.0278.59
5.0.40.0030.0408.39
5.0.30.0100.0478.41
5.0.20.0100.0238.38
5.0.10.0100.0338.21
5.0.00.0170.0478.19
4.4.90.0100.0275.93
4.4.80.0130.0135.93
4.4.70.0030.0275.87
4.4.60.0070.0236.00
4.4.50.0100.0175.91
4.4.40.0100.0335.92
4.4.30.0200.0135.86
4.4.20.0070.0235.99
4.4.10.0000.0306.07
4.4.00.0070.0335.96
4.3.110.0030.0235.91
4.3.100.0070.0205.94
4.3.90.0070.0205.88
4.3.80.0070.0435.84
4.3.70.0000.0275.82
4.3.60.0070.0235.89
4.3.50.0100.0305.89
4.3.40.0100.0405.80
4.3.30.0030.0274.56
4.3.20.0000.0304.56
4.3.10.0100.0174.58
4.3.00.0030.0239.49

preferences:
31.93 ms | 401 KiB | 5 Q