3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['M-am întîlnit ieri cu','fosta mea profă de matematică']; echo json_encode($array, JSON_UNESCAPED_UNICODE);

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.130.0080.00018.30
8.3.120.0060.00320.73
8.3.110.0110.00020.94
8.3.100.0150.00626.00
8.3.90.0270.00626.92
8.3.80.0150.00624.29
8.3.70.0190.00524.23
8.3.60.0190.00524.71
8.3.50.0220.01125.18
8.3.40.0240.00725.05
8.3.30.0170.00725.04
8.3.20.0160.00426.43
8.3.10.0090.00626.46
8.3.00.0150.00526.89
8.2.250.0060.00316.51
8.2.240.0080.00018.95
8.2.230.0040.00422.58
8.2.220.0200.00527.02
8.2.210.0130.00626.82
8.2.200.0180.00824.23
8.2.190.0230.00424.29
8.2.180.0140.00926.62
8.2.170.0190.00825.14
8.2.160.0220.00726.19
8.2.150.0220.00726.87
8.2.140.0190.00926.52
8.2.130.0200.00426.95
8.2.120.0240.00625.23
8.2.110.0230.00725.58
8.2.100.0200.00624.89
8.2.90.0220.00424.93
8.2.80.0190.00925.12
8.2.70.0180.00835.72
8.2.60.0150.00735.76
8.2.50.0160.00735.79
8.2.40.0160.00735.76
8.2.30.0140.00735.76
8.2.20.0120.00536.29
8.2.10.0140.00635.66
8.2.00.0180.00335.99
8.1.300.0030.00617.98
8.1.290.0240.00527.75
8.1.280.0240.00626.43
8.1.270.0240.00426.35
8.1.260.0250.00326.97
8.1.250.0140.00927.35
8.1.240.0150.00826.32
8.1.230.0150.00426.38
8.1.220.0140.00124.79
8.1.210.0150.00425.11
8.1.200.0130.00535.50
8.1.190.0150.00535.51
8.1.180.0210.00335.69
8.1.170.0190.00535.84
8.1.160.0150.00435.84
8.1.150.0150.00635.76
8.1.140.0180.00635.61
8.1.130.0180.00535.55
8.1.120.0200.00335.57
8.1.110.0170.00735.58
8.1.100.0190.00435.60
8.1.90.0130.00735.57
8.1.80.0140.00735.63
8.1.70.0130.00435.60
8.1.60.0140.00635.67
8.1.50.0160.00535.61
8.1.40.0120.01035.61
8.1.30.0130.00835.66
8.1.20.0170.00835.70
8.1.10.0240.00435.65
8.1.00.0190.00535.57
8.0.300.0140.00624.89
8.0.290.0170.00735.35
8.0.280.0200.00335.67
8.0.270.0190.00535.34
8.0.260.0170.00735.31
8.0.250.0180.00635.38
8.0.240.0180.00735.31
8.0.230.0170.00735.35
8.0.220.0170.00535.32
8.0.210.0190.00435.33
8.0.200.0120.00935.34
8.0.190.0150.00835.41
8.0.180.0190.00435.31
8.0.170.0210.00235.36
8.0.160.0190.00635.33
8.0.150.0210.00435.31
8.0.140.0160.00735.28
8.0.130.0160.00735.23
8.0.120.0180.00635.30
8.0.110.0200.00435.30
8.0.100.0140.00535.23
8.0.90.0150.00535.29
8.0.80.0210.00435.31
8.0.70.0180.00335.27
8.0.60.0150.00435.34
8.0.50.0160.00735.26
8.0.30.0180.00735.38
8.0.20.0150.00935.35
8.0.10.0200.00535.34
7.4.330.0130.00430.64
7.4.320.0190.00535.26
7.4.300.0210.00335.23
7.4.290.0180.00535.19
7.4.280.0170.00635.21
7.4.270.0220.00435.26
7.4.260.0180.00535.18
7.4.250.0170.00335.13
7.4.240.0160.00335.27
7.4.230.0150.00635.18
7.4.220.0170.00635.14
7.4.210.0160.00735.21
7.4.200.0160.00735.21
7.4.190.0190.00435.21
7.4.180.0180.00735.23
7.4.160.0210.00335.16
7.4.150.0200.00535.19
7.4.140.0200.00435.15
7.4.130.0170.00735.20
7.4.120.0160.00835.19
7.4.110.0190.00535.22
7.4.100.0210.00635.23
7.4.90.0210.00435.20
7.4.80.0190.00635.21
7.4.70.0180.00635.22
7.4.60.0190.00235.13
7.4.50.0170.00535.14
7.4.40.0160.00735.14
7.4.30.0190.00835.13
7.4.20.0230.00335.09
7.4.10.0220.00535.18
7.4.00.0210.00735.19

preferences:
26.61 ms | 403 KiB | 5 Q