3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode('测试字符')

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.25
5.5.240.0070.06720.16
5.4.400.0470.06318.78
5.4.390.0400.05018.72
5.4.380.0370.06018.78
5.4.370.0400.05018.57
5.4.360.0370.06318.74
5.4.350.0630.05018.53
5.4.340.0500.06718.57
5.4.320.0830.05718.65
5.4.310.0630.05718.58
5.4.300.0270.07018.66
5.4.290.0300.06018.67
5.4.280.0330.06718.67
5.4.270.0330.06018.66
5.4.260.0370.06018.71
5.4.250.0400.06718.52
5.4.240.0500.07018.77
5.4.230.0500.07018.61
5.4.220.0500.07018.48
5.4.210.0330.07318.55
5.4.200.0300.06016.41
5.4.190.0500.06718.54
5.4.180.0430.07018.55
5.4.170.0430.06718.64
5.4.160.0470.06718.72
5.4.150.0300.07018.75
5.4.140.0430.05316.30
5.4.130.0300.06316.14
5.4.120.0430.06716.13
5.4.110.0330.05016.22
5.4.100.0570.04716.08
5.4.90.0400.05016.04
5.4.80.0670.05316.23
5.4.70.0500.05016.02
5.4.60.0270.06716.32
5.4.50.0370.05316.23
5.4.40.0270.05716.13
5.4.30.0370.06316.01
5.4.20.0400.05716.13
5.4.10.0430.06316.26
5.4.00.0500.06015.53
5.3.290.0330.06714.60
5.3.280.0500.06714.67
5.3.270.0430.07314.60
5.3.260.0400.07314.60
5.3.250.0370.06314.70
5.3.240.0430.05714.70
5.3.230.0530.05714.51
5.3.220.0370.05714.46
5.3.210.0330.05314.66
5.3.200.0330.04714.64
5.3.190.0430.05014.50
5.3.180.0270.05314.48
5.3.170.0430.04714.54
5.3.160.0330.05714.65
5.3.150.0330.04714.65
5.3.140.0400.04714.54
5.3.130.0270.05714.65
5.3.120.0330.05314.56
5.3.110.0200.08314.54
5.3.100.0400.06714.01
5.3.90.0530.06713.93
5.3.80.0400.06713.91
5.3.70.1730.06013.99
5.3.60.1170.05713.95
5.3.50.0400.05313.90
5.3.40.0400.06313.98
5.3.30.0370.07013.90
5.3.20.0400.06713.61
5.3.10.0300.07013.64
5.3.00.0330.05013.62
5.2.170.0470.04311.20
5.2.160.0200.05011.06
5.2.150.0330.04311.18
5.2.140.0200.04711.17
5.2.130.0200.05711.03
5.2.120.0270.03311.03
5.2.110.0230.04011.09
5.2.100.0230.04711.05
5.2.90.0300.04711.02
5.2.80.0330.04711.23
5.2.70.0200.04711.08
5.2.60.0200.05711.07
5.2.50.0200.06311.00
5.2.40.0200.04310.91
5.2.30.0130.05010.93
5.2.20.0200.04310.99
5.2.10.0130.05310.86
5.2.00.0270.05310.69
5.1.60.0130.05010.00
5.1.50.0230.05010.01
5.1.40.0130.0579.98
5.1.30.0300.05010.32
5.1.20.0330.05010.47
5.1.10.0370.03710.13
5.1.00.0300.04010.11
5.0.50.0130.0378.65
5.0.40.0200.0338.51
5.0.30.0130.0578.28
5.0.20.0100.0378.21
5.0.10.0130.0308.35
5.0.00.0100.0478.28
4.4.90.0100.0235.90
4.4.80.0170.0235.95
4.4.70.0100.0275.89
4.4.60.0130.0175.82
4.4.50.0100.0205.86
4.4.40.0070.0405.87
4.4.30.0070.0275.82
4.4.20.0130.0235.93
4.4.10.0130.0205.96
4.4.00.0130.0405.94
4.3.110.0130.0205.80
4.3.100.0100.0205.79
4.3.90.0070.0275.82
4.3.80.0130.0335.89
4.3.70.1200.0275.81
4.3.60.0100.0305.79
4.3.50.0100.0275.77
4.3.40.0070.0405.75
4.3.30.0000.0274.57
4.3.20.0000.0304.54
4.3.10.0000.0274.53
4.3.00.0000.0276.67

preferences:
143.68 ms | 1394 KiB | 7 Q