3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(array( 'terms_and_conditions' => 'Legal saraza' 'dns' => 'DNS saraza' ));

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.110.0030.08321.08
5.6.100.0100.08721.00
5.6.90.0070.04720.97
5.6.80.0070.04020.37
5.5.270.0100.08020.82
5.5.260.0070.03720.75
5.5.250.0170.07720.68
5.5.240.0070.07020.12
5.4.430.0600.05019.43
5.4.420.0600.06319.39
5.4.410.0570.05019.54
5.4.400.0670.05019.35
5.4.390.0600.05719.22
5.4.380.0730.05319.26
5.4.370.0770.04718.89
5.4.360.0470.06019.32
5.4.350.0600.05019.31
5.4.340.0600.05319.11
5.4.320.0570.05719.11
5.4.310.0670.04019.00
5.4.300.0600.04319.21
5.4.290.0530.05719.10
5.4.280.0470.06018.88
5.4.270.0570.04718.90
5.4.260.0570.05019.15
5.4.250.0630.04018.99
5.4.240.0530.05319.31
5.4.230.0600.06719.30
5.4.220.0570.07019.11
5.4.210.0500.05318.94
5.4.200.0470.04716.67
5.4.190.0470.05719.13
5.4.180.0530.05319.23
5.4.170.0500.05318.94
5.4.160.0330.05719.18
5.4.150.0230.04719.16
5.4.140.0530.06016.46
5.4.130.0600.03316.58
5.4.120.0530.04316.35
5.4.110.0570.05716.48
5.4.100.0500.05016.31
5.4.90.0430.05016.43
5.4.80.0000.05716.30
5.4.70.0370.05716.32
5.4.60.0470.05316.60
5.4.50.0470.04316.45
5.4.40.0430.05316.64
5.4.30.0470.05016.59
5.4.20.0370.05316.62
5.4.10.0470.05316.44
5.4.00.0470.04015.93
5.3.290.0200.05714.67
5.3.280.0070.05314.53
5.3.270.0430.06014.46
5.3.260.0470.05014.45
5.3.250.0600.04714.45
5.3.240.0470.04714.48
5.3.230.0600.05314.60
5.3.220.0700.04314.55
5.3.210.0570.05714.58
5.3.200.0500.04714.40
5.3.190.0470.05014.48
5.3.180.0430.05014.43
5.3.170.0500.04714.49
5.3.160.0530.04314.48
5.3.150.0470.05014.36
5.3.140.0570.03714.47
5.3.130.0430.05714.56
5.3.120.0430.06014.39
5.3.110.0400.06014.45
5.3.100.0470.04313.88
5.3.90.0400.04713.94
5.3.80.0400.05313.84
5.3.70.0500.05314.03
5.3.60.0570.05314.03
5.3.50.0570.04313.88
5.3.40.0530.04713.78
5.3.30.0470.04713.93
5.3.20.0530.04713.55
5.3.10.0430.05013.48
5.3.00.0470.05313.51
5.2.170.0300.04310.99
5.2.160.0330.04710.93
5.2.150.0400.04011.14
5.2.140.0500.03310.99
5.2.130.0530.03011.10
5.2.120.0370.04310.95
5.2.110.0470.03310.96
5.2.100.0500.03710.99
5.2.90.0330.05010.93
5.2.80.0430.03711.04
5.2.70.0430.04011.04
5.2.60.0430.03710.96
5.2.50.0370.04310.90
5.2.40.0370.03710.98
5.2.30.0330.04310.96
5.2.20.0300.04010.79
5.2.10.0330.04010.76
5.2.00.0370.03710.67
5.1.60.0400.03010.07
5.1.50.0370.0309.92
5.1.40.0370.03710.06
5.1.30.0330.03310.23
5.1.20.0300.04010.24
5.1.10.0270.0409.95
5.1.00.0300.04010.10
5.0.50.0370.0208.61
5.0.40.0170.0278.50
5.0.30.0200.0438.26
5.0.20.0200.0278.25
5.0.10.0130.0308.02
5.0.00.0170.0478.15
4.4.90.0100.0235.77
4.4.80.0200.0205.85
4.4.70.0170.0235.79
4.4.60.0200.0275.80
4.4.50.0230.0175.92
4.4.40.0270.0305.89
4.4.30.0200.0205.90
4.4.20.0230.0205.82
4.4.10.0130.0235.82
4.4.00.0130.0435.89
4.3.110.0170.0205.70
4.3.100.0200.0205.74
4.3.90.0100.0275.74
4.3.80.0170.0335.64
4.3.70.0100.0275.64
4.3.60.0170.0205.65
4.3.50.0170.0235.75
4.3.40.0200.0305.69
4.3.30.0100.0234.45
4.3.20.0100.0204.45
4.3.10.0070.0204.45
4.3.00.0030.0237.51

preferences:
147.16 ms | 1394 KiB | 7 Q