3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "'' == 0 ? " . ('' == 0 ? 'oh yes': 'sorry, nope'); echo "\n"; echo "'' === 0 ? " . ('' === 0 ? 'oh yes': 'sorry, nope'); echo "\n"; echo "'0' == 0 ? " . ('0' == 0 ? 'oh yes': 'sorry, nope'); echo "\n"; echo "'💩' == 0 ? " . ('💩' == 0 ? 'oh yes': 'sorry, nope'); echo "\n"; echo "'0foo' == 0 ? " . ('0foo' == 0 ? 'oh yes': 'sorry, nope');

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.0070.01417.76
8.4.10.0090.00617.31
8.3.150.0110.00720.44
8.3.140.0050.00316.71
8.3.130.0050.00316.54
8.3.120.0130.00618.78
8.3.110.0000.01820.94
8.3.100.0030.00718.34
8.3.90.0080.00026.77
8.3.80.0030.00619.36
8.3.70.0110.00716.58
8.3.60.0140.00718.13
8.3.50.0130.00516.53
8.3.40.0170.00018.99
8.3.30.0120.00318.79
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0030.00526.16
8.2.260.0100.00616.25
8.2.250.0000.00816.59
8.2.240.0070.01117.03
8.2.230.0060.00322.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0000.00918.88
8.2.190.0110.00418.16
8.2.180.0100.01025.92
8.2.170.0120.00318.82
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00821.00
8.2.110.0000.01020.47
8.2.100.0030.00917.75
8.2.90.0030.00618.03
8.2.80.0030.00619.07
8.2.70.0040.00417.90
8.2.60.0000.00817.78
8.2.50.0050.00318.10
8.2.40.0080.00019.23
8.2.30.0030.00518.04
8.2.20.0040.00418.00
8.2.10.0040.00419.20
8.2.00.0000.00719.17
8.1.310.0080.00019.89
8.1.300.0060.00317.66
8.1.290.0050.00530.84
8.1.280.0100.00725.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00719.13
8.1.230.0090.00320.79
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0030.01016.97
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00718.77
8.1.150.0050.00318.70
8.1.140.0000.00718.77
8.1.130.0000.00720.07
8.1.120.0000.00717.34
8.1.110.0060.00317.28
8.1.100.0000.00917.22
8.1.90.0030.00317.32
8.1.80.0040.00417.34
8.1.70.0070.00017.34
8.1.60.0030.00617.46
8.1.50.0040.00417.30
8.1.40.0040.00417.42
8.1.30.0000.00817.39
8.1.20.0030.00617.40
8.1.10.0040.00417.35
8.1.00.0080.00317.25
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0080.00020.18
8.0.270.0030.00318.05
8.0.260.0030.00318.39
8.0.250.0040.00416.93
8.0.240.0080.00017.00
8.0.230.0040.00416.92
8.0.220.0030.00316.80
8.0.210.0080.00016.95
8.0.200.0030.00316.84
8.0.190.0030.00617.00
8.0.180.0040.00416.89
8.0.170.0040.00416.80
8.0.160.0040.00716.95
8.0.150.0040.00416.93
8.0.140.0030.00616.90
8.0.130.0000.00613.35
8.0.120.0000.00816.86
8.0.110.0070.00016.82
8.0.100.0050.00316.66
8.0.90.0000.00716.88
8.0.80.0070.00916.84
8.0.70.0080.00016.78
8.0.60.0000.00816.79
8.0.50.0070.00016.63
8.0.30.0160.00316.89
8.0.20.0120.00616.89
8.0.10.0110.01116.85
8.0.00.0120.00617.01
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0000.00816.30
7.4.290.0050.00316.34
7.4.280.0050.00316.43
7.4.270.0000.00716.48
7.4.260.0040.00416.48
7.4.250.0070.00016.33
7.4.240.0040.00416.39
7.4.230.0030.00316.54
7.4.220.0030.00316.28
7.4.210.0090.00916.37
7.4.200.0030.00316.50
7.4.160.0160.00516.42
7.4.150.0040.01716.38
7.4.140.0100.00716.31
7.4.130.0060.01416.44
7.4.120.0150.00516.37
7.4.110.0070.01016.51
7.4.100.0060.01316.48
7.4.90.0110.00516.48
7.4.80.0100.00616.41
7.4.70.0110.01116.52
7.4.60.0170.00016.63
7.4.50.0130.00816.44
7.4.40.0070.01016.30
7.4.30.0120.00916.34
7.4.20.0040.01216.58
7.4.10.0060.00916.42
7.4.00.0030.01316.45
7.3.330.0070.00016.17
7.3.320.0000.00613.10
7.3.310.0070.00016.23
7.3.300.0040.00416.30
7.3.290.0070.01116.25
7.3.270.0130.00316.41
7.3.260.0060.01516.21
7.3.250.0120.00616.34
7.3.240.0110.00716.12
7.3.230.0070.01116.65
7.3.220.0140.00416.31
7.3.210.0060.01116.23
7.3.200.0100.00616.37
7.3.190.0060.01516.31
7.3.180.0110.00516.49
7.3.170.0080.00816.13
7.3.160.0130.00316.23
7.3.150.0110.00416.14
7.3.140.0090.00616.21
7.3.130.0090.00916.18
7.3.120.0040.01516.46
7.3.110.0050.01116.13
7.3.100.0060.00916.16
7.3.90.0160.00016.24
7.3.80.0090.00616.33
7.3.70.0060.00916.38
7.3.60.0090.00616.28
7.3.50.0130.00316.38
7.3.40.0130.00316.25
7.3.30.0050.01016.35
7.3.20.0130.00316.44
7.3.10.0150.00716.35
7.3.00.0090.00616.33

preferences:
73.33 ms | 403 KiB | 5 Q