3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (0 == '0foo') { echo "foo1"; // always false with >= PHP 8 } if (0 === '0foo') { echo "foo2"; // always false } if ('0foo' != 1) { echo "foo3"; // always true }

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.4.20.0100.01017.50
8.4.10.0030.00621.80
8.3.150.0110.00720.83
8.3.140.0090.00916.47
8.3.130.0040.00418.50
8.3.120.0030.00618.79
8.3.110.0190.00821.76
8.3.100.0160.01023.32
8.3.90.0210.00724.67
8.3.80.0340.00219.60
8.3.70.0260.00719.66
8.3.60.0320.00219.48
8.3.50.0220.01021.40
8.3.40.0200.00622.21
8.3.30.0140.01120.63
8.3.20.0200.00223.38
8.3.10.0140.00723.62
8.3.00.0090.00524.37
8.2.260.0070.01118.47
8.2.250.0080.00016.32
8.2.240.0040.00718.61
8.2.230.0150.00822.58
8.2.220.0140.00530.06
8.2.210.0200.00324.67
8.2.200.0130.01219.48
8.2.190.0200.00819.66
8.2.180.0180.01124.25
8.2.170.0190.00822.77
8.2.160.0230.00822.77
8.2.150.0150.00824.12
8.2.140.0170.00923.62
8.2.130.0200.00624.37
8.2.120.0210.00124.37
8.2.110.0200.00821.88
8.2.100.0160.01120.21
8.2.90.0210.00520.21
8.2.80.0160.01020.78
8.2.70.0180.01020.04
8.2.60.0180.00820.19
8.2.50.0210.00620.28
8.2.40.0220.00320.24
8.2.30.0170.00620.25
8.2.20.0140.00621.54
8.2.10.0080.00520.28
8.2.00.0110.00420.80
8.1.310.0080.00016.68
8.1.300.0040.00817.93
8.1.290.0100.00426.71
8.1.280.0160.00524.25
8.1.270.0150.00523.24
8.1.260.0110.00324.46
8.1.250.0110.00525.33
8.1.240.0120.00123.19
8.1.230.0180.00521.80
8.1.220.0180.00420.16
8.1.210.0180.00620.67
8.1.200.0220.00219.85
8.1.190.0160.00819.84
8.1.180.0170.00720.34
8.1.170.0200.00820.10
8.1.160.0180.00520.61
8.1.150.0210.00220.52
8.1.140.0180.00519.95
8.1.130.0150.00720.62
8.1.120.0170.00719.90
8.1.110.0200.00319.98
8.1.100.0160.00719.96
8.1.90.0190.00419.94
8.1.80.0180.00719.90
8.1.70.0140.01319.94
8.1.60.0290.00219.99
8.1.50.0210.00719.97
8.1.40.0360.00619.97
8.1.30.0270.00519.98
8.1.20.0220.00820.04
8.1.10.0270.00320.00
8.1.00.0260.00719.91
8.0.300.0190.00221.34
8.0.290.0130.00919.66
8.0.280.0140.00720.51
8.0.270.0150.00419.69
8.0.260.0100.00820.43
8.0.250.0130.00719.74
8.0.240.0110.00719.74
8.0.230.0160.00319.68
8.0.220.0100.00819.66
8.0.210.0210.00519.72
8.0.200.0200.00719.65
8.0.190.0190.00719.73
8.0.180.0240.00119.70
8.0.170.0200.00719.71
8.0.160.0200.00619.64
8.0.150.0200.00719.68
8.0.140.0190.00619.69
8.0.130.0170.00819.63
8.0.120.0170.00819.68
8.0.110.0170.00919.69
8.0.100.0220.00319.70
8.0.90.0210.00419.65
8.0.80.0170.00419.66
8.0.70.0140.00219.63
8.0.60.0070.00819.62
8.0.50.0180.00919.65
8.0.30.0210.00619.66
8.0.20.0210.00719.76
8.0.10.0180.00719.67
7.4.330.0140.00519.06
7.4.320.0120.00819.43
7.4.300.0160.00519.54
7.4.290.0160.00719.52
7.4.280.0160.00619.48
7.4.270.0130.01119.51
7.4.260.0170.00519.44
7.4.250.0160.00819.48
7.4.240.0200.00519.49
7.4.230.0160.00919.54
7.4.220.0210.00319.46
7.4.210.0190.00719.46
7.4.200.0200.00919.54
7.4.190.0210.00519.51
7.4.180.0170.00619.52
7.4.160.0200.00419.45
7.4.150.0170.00619.44
7.4.140.0150.00819.43
7.4.130.0160.00819.46
7.4.120.0140.01019.45
7.4.110.0160.00819.46
7.4.100.0170.00719.44
7.4.90.0180.00719.38
7.4.80.0160.00819.44
7.4.70.0210.00319.45
7.4.60.0210.00319.39
7.4.50.0190.00419.40
7.4.40.0160.00919.34
7.4.30.0210.00519.45
7.4.20.0220.00319.39
7.4.10.0220.00319.45
7.4.00.0190.00419.39

preferences:
41.82 ms | 403 KiB | 5 Q