3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 変数:データにつけるラベル // 文字列 "" '' // 数値(整数、小数) // 論理値(true/false) // null(何もない) // 配列 // オブジェクト $message = "Hello World!"; $x = 5; $y = 1.22; $flag = true; $n = null; <pre> var_dump($message); </pre> var_dump($x); var_dump($y); var_dump($flag); var_dump($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.390.0200.05318.80
5.4.380.0200.05318.80
5.4.370.0230.07318.62
5.4.360.0270.05318.69
5.4.350.0230.05318.79
5.4.340.0230.05318.62
5.4.320.0270.05318.69
5.4.310.0370.04018.61
5.4.300.0200.05318.63
5.4.290.0200.05318.61
5.4.280.0230.05718.76
5.4.270.0370.04318.75
5.4.260.0200.05718.57
5.4.250.0200.06018.58
5.4.240.0500.04318.61
5.4.230.0300.04718.68
5.4.220.0270.05018.45
5.4.210.0230.05018.45
5.4.200.0130.06016.55
5.4.190.0270.05718.68
5.4.180.0330.06318.77
5.4.170.0270.05718.57
5.4.160.0270.04718.70
5.4.150.0230.06018.73
5.4.140.0300.04716.26
5.4.130.0200.05016.28
5.4.120.0330.05716.19
5.4.110.0200.05316.19
5.4.100.0230.05016.27
5.4.90.0230.05016.21
5.4.80.0300.04716.27
5.4.70.0300.04016.26
5.4.60.0130.05716.29
5.4.50.0270.05716.21
5.4.40.0300.05016.20
5.4.30.0300.05716.38
5.4.20.0170.05716.25
5.4.10.0200.05716.38
5.4.00.0170.05715.61
5.3.290.0300.06314.58
5.3.280.0130.06014.50
5.3.270.0300.04714.66
5.3.260.0230.05014.70
5.3.250.0230.05014.52
5.3.240.0130.05714.59
5.3.230.0270.04314.65
5.3.220.0170.06014.66
5.3.210.0230.05314.52
5.3.200.0100.06014.66
5.3.190.0270.05014.68
5.3.180.0430.05314.65
5.3.170.0370.06314.48
5.3.160.0400.04714.48
5.3.150.0230.05314.56
5.3.140.0200.06014.66
5.3.130.0200.06014.64
5.3.120.0270.04714.60
5.3.110.0300.05314.65
5.3.100.0270.04714.02
5.3.90.0230.05013.93
5.3.80.0200.05314.00
5.3.70.0330.04713.95
5.3.60.0230.05013.95
5.3.50.0200.05313.92
5.3.40.0230.05013.94
5.3.30.0200.05013.80
5.3.20.0170.05313.78
5.3.10.0230.05713.55
5.3.00.0270.05013.57
5.2.170.0170.04311.20
5.2.160.0070.05311.18
5.2.150.0200.04011.20
5.2.140.0270.03711.09
5.2.130.0370.04311.15
5.2.120.0200.04311.05
5.2.110.0200.04011.15
5.2.100.0170.04011.05
5.2.90.0230.04011.14
5.2.80.0200.03711.02
5.2.70.0170.04011.04
5.2.60.0200.04011.05
5.2.50.0200.03711.02
5.2.40.0070.04711.13
5.2.30.0130.04310.93
5.2.20.0200.03311.00
5.2.10.0130.04010.87
5.2.00.0130.04010.71
5.1.60.0100.0409.99
5.1.50.0200.03010.11
5.1.40.0200.0279.97
5.1.30.0170.03310.45
5.1.20.0170.03710.47
5.1.10.0230.02710.09
5.1.00.0170.03310.17
5.0.50.0200.0278.66
5.0.40.0070.0308.41
5.0.30.0130.0378.29
5.0.20.0070.0278.22
5.0.10.0100.0278.35
5.0.00.0070.0438.34
4.4.90.0100.0205.89
4.4.80.0100.0205.86
4.4.70.0070.0235.92
4.4.60.0030.0275.90
4.4.50.0130.0175.91
4.4.40.0030.0375.90
4.4.30.0100.0205.90
4.4.20.0100.0205.91
4.4.10.0070.0235.96
4.4.00.0070.0375.95
4.3.110.0070.0235.81
4.3.100.0100.0235.84
4.3.90.0030.0235.87
4.3.80.0070.0335.87
4.3.70.0100.0175.81
4.3.60.0070.0205.87
4.3.50.0100.0205.84
4.3.40.0070.0375.76
4.3.30.0000.0334.63
4.3.20.0030.0234.54
4.3.10.0070.0204.61
4.3.00.0030.0208.66

preferences:
143.11 ms | 1394 KiB | 7 Q