3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define('Foo\\null', \true); define('Foo\\true', \false); define('Foo\\false', \true); echo "null" . (null ? "1" : "0"); echo "true" . (true ? "1" : "0"); echo "false" . (false ? "1" : "0");

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.40.0110.00418.79
8.3.30.0080.00618.71
8.3.20.0070.00020.20
8.3.10.0000.00823.39
8.3.00.0110.00422.45
8.2.170.0040.01122.96
8.2.160.0100.00322.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00417.63
8.2.110.0030.00721.04
8.2.100.0120.00017.75
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0050.00317.80
8.2.50.0000.00918.07
8.2.40.0080.00021.25
8.2.30.0040.00419.83
8.2.20.0050.00317.68
8.2.10.0030.00617.98
8.2.00.0000.00717.86
8.1.270.0080.00020.38
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00021.31
8.1.230.0090.00317.66
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.22
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0000.00918.65
8.1.160.0040.00421.99
8.1.150.0000.00718.80
8.1.140.0040.00417.37
8.1.130.0030.00317.48
8.1.120.0000.00817.34
8.1.110.0060.00317.25
8.1.100.0040.00317.24
8.1.90.0040.00417.26
8.1.80.0030.00517.32
8.1.70.0070.00017.20
8.1.60.0030.00617.34
8.1.50.0000.00817.41
8.1.40.0050.00517.27
8.1.30.0000.00817.50
8.1.20.0040.00417.56
8.1.10.0040.00417.50
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0070.00017.19
8.0.260.0030.00317.10
8.0.250.0030.00616.91
8.0.240.0070.00016.97
8.0.230.0070.00016.94
8.0.220.0000.00716.79
8.0.210.0030.00316.81
8.0.200.0060.00016.94
8.0.190.0040.00416.99
8.0.180.0000.00716.96
8.0.170.0040.00416.93
8.0.160.0070.00016.96
8.0.150.0030.00316.91
8.0.140.0080.00016.85
8.0.130.0000.00613.26
8.0.120.0030.00516.86
8.0.110.0070.00016.82
8.0.100.0040.00416.71
8.0.90.0040.00416.77
8.0.80.0090.00616.76
8.0.70.0000.00816.89
8.0.60.0030.00516.70
8.0.50.0040.00416.66
8.0.30.0080.00917.04
8.0.20.0120.01017.40
8.0.10.0000.00716.75
8.0.00.0080.01016.67
7.4.330.0000.00515.08
7.4.320.0000.00716.52
7.4.300.0000.00616.40
7.4.290.0040.00416.41
7.4.280.0030.00616.27
7.4.270.0000.00716.46
7.4.260.0030.00916.35
7.4.250.0000.00716.29
7.4.240.0020.00616.34
7.4.230.0000.00716.50
7.4.220.0110.00716.46
7.4.210.0040.01116.24
7.4.200.0000.00816.51
7.4.160.0060.01216.43
7.4.150.0140.01017.40
7.4.140.0080.01117.86
7.4.130.0120.00416.59
7.4.120.0100.00816.41
7.4.110.0100.00716.32
7.4.100.0110.00816.22
7.4.90.0120.00616.29
7.4.80.0070.01519.39
7.4.70.0000.01616.37
7.4.60.0060.00916.45
7.4.50.0000.00916.18
7.4.40.0070.01016.30
7.4.30.0040.01916.48
7.4.00.0090.00614.65
7.3.330.0030.00313.08
7.3.320.0030.00313.20
7.3.310.0090.00016.19
7.3.300.0000.00716.25
7.3.290.0080.00816.25
7.3.280.0100.00716.25
7.3.270.0140.00417.40
7.3.260.0120.00916.54
7.3.250.0120.00716.24
7.3.240.0130.00616.41
7.3.230.0030.01416.39
7.3.210.0090.00916.32
7.3.200.0120.00416.67
7.3.190.0120.00416.27
7.3.180.0070.01016.14
7.3.170.0030.01716.42
7.3.160.0090.00616.32
7.2.330.0120.01216.29
7.2.320.0120.01516.61
7.2.310.0100.00716.37
7.2.300.0140.00316.50
7.2.290.0070.01116.66
7.2.60.0060.00816.72
7.2.00.0060.00919.32
7.1.200.0040.00715.76
7.1.100.0140.00817.96
7.1.70.0060.00917.02
7.1.60.0000.02519.18
7.1.50.0060.01216.85
7.1.00.0000.08022.37
7.0.200.0070.01016.34
7.0.60.0100.08020.02
7.0.50.0100.04317.86
7.0.40.0070.04020.19
7.0.30.0270.04720.17
7.0.20.0030.06020.33
7.0.10.0000.05720.16
7.0.00.0170.03720.17
5.6.280.0000.03321.15
5.6.210.0130.06320.72
5.6.200.0130.07318.17
5.6.190.0130.06020.27
5.6.180.0330.04320.56
5.6.170.0370.07720.48
5.6.160.0100.03320.48
5.6.150.0100.06718.11
5.6.140.0070.06318.18
5.6.130.0130.07318.21
5.6.120.0100.04721.00
5.6.110.0130.06720.89
5.6.100.0030.07321.13
5.6.90.0070.08320.99
5.6.80.0170.06720.37
5.5.350.0070.07720.32
5.5.340.0030.06317.92
5.5.330.0170.06720.13
5.5.320.0000.04720.30
5.5.310.0300.04320.34
5.5.300.0030.08718.02
5.5.290.0100.07718.00
5.5.280.0130.07720.65
5.5.270.0030.08720.75
5.5.260.0170.07720.77
5.5.250.0130.04320.46
5.5.240.0070.07320.15
5.4.450.0630.06019.47
5.4.440.0830.05019.29
5.4.430.0670.05019.23
5.4.420.0670.05319.27
5.4.410.0630.05319.50
5.4.400.0930.05018.79
5.4.390.0470.05719.22
5.4.380.0800.05318.91
5.4.370.0670.04318.95
5.4.360.0630.05319.10
5.4.350.0730.05719.23
5.4.340.0530.05319.08
5.4.320.0730.05019.08
5.4.310.0500.06019.00
5.4.300.0930.05019.12
5.4.290.1100.04718.80
5.4.280.0900.05019.27
5.4.270.0530.06018.91
5.4.260.0730.04719.21
5.4.250.0500.04719.29
5.4.240.0600.06019.21
5.4.230.0800.05019.07
5.4.220.1100.08319.29
5.4.210.0600.07318.96
5.4.200.0770.04716.61
5.4.190.0600.04718.86
5.4.180.0630.05019.17
5.4.170.0830.05719.13
5.4.160.0730.05318.86
5.4.150.0700.05719.27
5.4.140.0730.05016.27
5.4.130.0930.05716.59
5.4.120.0470.05716.25
5.4.110.0570.04716.38
5.4.100.0730.07716.59
5.4.90.0270.06016.48
5.4.80.0570.04716.57
5.4.70.0570.05016.13
5.4.60.0170.04016.47
5.4.50.0000.03316.36
5.4.40.0270.03316.45
5.4.30.0200.04016.31
5.4.20.0100.04016.38
5.4.10.0370.04716.45

preferences:
43.11 ms | 400 KiB | 5 Q