3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return json_encode([42]); } function bar () { $result = (yield foo()); yield json_decode($result); } $bar = bar(); var_dump($bar); foreach($bar as $key => $value) { var_dump($key => $value); echo "\n"; }

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.380.0470.04318.70
5.4.370.0430.06018.75
5.4.360.0370.05018.63
5.4.350.0230.06018.79
5.4.340.0400.07318.47
5.4.320.0500.08318.61
5.4.310.0500.05018.85
5.4.300.0230.05318.84
5.4.290.0270.05718.47
5.4.280.0300.05318.62
5.4.270.0400.04718.75
5.4.260.0330.04718.55
5.4.250.0300.07018.53
5.4.240.0370.06318.78
5.4.230.0470.07018.70
5.4.220.0400.07718.73
5.4.210.0430.05718.74
5.4.200.0430.05716.63
5.4.190.0400.04718.55
5.4.180.0400.05018.48
5.4.170.0230.06018.57
5.4.160.0300.05318.59
5.4.150.0230.06018.59
5.4.140.0330.04716.35
5.4.130.0330.04316.26
5.4.120.0330.05016.20
5.4.110.0270.05716.29
5.4.100.0270.05016.28
5.4.90.0230.05316.36
5.4.80.0300.05016.27
5.4.70.0200.06716.44
5.4.60.0300.05316.26
5.4.50.0430.05016.30
5.4.40.0300.05716.29
5.4.30.0300.05016.28
5.4.20.0330.05016.27
5.4.10.0300.05016.16
5.4.00.0270.05015.69
5.3.290.0270.06014.79
5.3.280.0300.05014.63
5.3.270.0270.06314.64
5.3.260.0270.05714.65
5.3.250.0300.05014.71
5.3.240.0430.04714.75
5.3.230.0270.05314.63
5.3.220.0370.04014.77
5.3.210.0270.05314.75
5.3.200.0200.05714.59
5.3.190.0370.05014.69
5.3.180.0270.05314.71
5.3.170.0330.04314.62
5.3.160.0470.06314.61
5.3.150.0470.07314.70
5.3.140.0270.05314.55
5.3.130.0270.05714.71
5.3.120.0400.04714.54
5.3.110.0430.05014.55
5.3.100.0330.05014.16
5.3.90.0330.05714.02
5.3.80.0370.04314.11
5.3.70.0230.05314.23
5.3.60.0330.04314.05
5.3.50.0370.04714.04
5.3.40.0400.05013.99
5.3.30.0230.05013.93
5.3.20.0200.05713.76
5.3.10.0400.06313.71
5.3.00.0400.06313.74
5.2.170.0200.04011.21
5.2.160.0200.04311.18
5.2.150.0200.04711.19
5.2.140.0300.04011.38
5.2.130.0430.03311.21
5.2.120.0300.05311.22
5.2.110.0230.04311.22
5.2.100.0130.05311.32
5.2.90.0230.04311.15
5.2.80.0200.04311.20
5.2.70.0200.04311.15
5.2.60.0200.04711.17
5.2.50.0400.04711.14
5.2.40.0230.04711.09
5.2.30.0200.03710.95
5.2.20.0200.03711.08
5.2.10.0200.03710.91
5.2.00.0130.04310.76
5.1.60.0170.04310.10
5.1.50.0130.03710.06
5.1.40.0100.04010.18
5.1.30.0230.04310.34
5.1.20.0300.04710.50
5.1.10.0200.03710.05
5.1.00.0170.03310.24
5.0.50.0100.0308.64
5.0.40.0130.0238.54
5.0.30.0070.0508.30
5.0.20.0100.0278.24
5.0.10.0200.0278.37
5.0.00.0100.0438.25
4.4.90.0170.0135.93
4.4.80.0070.0235.88
4.4.70.0070.0275.88
4.4.60.0100.0205.86
4.4.50.0100.0275.89
4.4.40.0100.0336.01
4.4.30.0170.0235.89
4.4.20.0130.0305.98
4.4.10.0170.0235.95
4.4.00.0170.0375.90
4.3.110.0070.0305.91
4.3.100.0070.0305.90
4.3.90.0100.0235.84
4.3.80.0100.0405.86
4.3.70.0070.0205.82
4.3.60.0000.0275.82
4.3.50.0030.0235.82
4.3.40.0030.0335.78
4.3.30.0030.0205.56
4.3.20.0070.0175.56
4.3.10.0070.0205.56
4.3.00.0030.0238.68

preferences:
148.08 ms | 1394 KiB | 7 Q