3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump('1' == '01'); // bool(true) var_dump('1' == '001'); // bool(true) var_dump('1' == '1e0'); // bool(true) var_dump('1' == ' 1 '); // PHP 8.0.0 以上ならばbool(true)。PHP8.0.0 未満ならば bool(false) var_dump('1' == '1 '); // PHP 8.0.0 以上ならばbool(true)。PHP8.0.0 未満ならば bool(false) var_dump('1' == ' 1'); // bool(true) どのバージョンでも true var_dump('0' == '0e0'); // bool(true) var_dump('0' == '0e10'); // bool(true) var_dump('0' == '00'); // bool(true) var_dump('0' == '0.0'); // bool(true) var_dump('0' == '-0'); // bool(true) var_dump('0' == '+0'); // bool(true) var_dump('0' == ' 0 '); // PHP 8.0.0 以上ならばbool(true)。PHP8.0.0 未満ならば bool(false) var_dump('0' == '0 '); // PHP 8.0.0 以上ならばbool(true)。PHP8.0.0 未満ならば bool(false) var_dump('0' == ' 0'); // bool(true) どのバージョンでも true var_dump('r' == ' r'); // bool(false) var_dump('r' == ' r '); // bool(false) var_dump('r' == 'r '); // bool(false)

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.10.0040.00419.21
8.3.140.0120.00616.48
8.3.130.0110.00718.07
8.3.120.0040.00418.93
8.3.110.0040.01120.94
8.3.100.0050.00316.67
8.3.90.0080.00826.77
8.3.80.0050.00518.20
8.3.70.0060.00916.58
8.3.60.0100.01016.50
8.3.50.0190.00318.29
8.3.40.0000.01418.54
8.3.30.0120.00318.64
8.3.20.0030.00524.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.260.0100.00716.88
8.2.250.0000.00916.35
8.2.240.0060.00318.84
8.2.230.0080.00022.58
8.2.220.0060.00324.06
8.2.210.0070.00226.77
8.2.200.0030.00616.38
8.2.190.0180.00417.93
8.2.180.0040.01125.92
8.2.170.0170.00318.88
8.2.160.0040.01122.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00720.80
8.2.110.0070.00320.86
8.2.100.0060.00619.39
8.2.90.0040.00417.50
8.2.80.0030.00518.48
8.2.70.0040.00417.50
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0000.00819.80
8.2.30.0040.00417.94
8.2.20.0040.00420.32
8.2.10.0070.00017.54
8.2.00.0070.00019.01
8.1.300.0060.00317.89
8.1.290.0000.00930.84
8.1.280.0100.00625.92
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0040.00818.95
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0060.00318.57
8.1.160.0000.00718.82
8.1.150.0040.00418.43
8.1.140.0050.00217.23
8.1.130.0000.00718.76
8.1.120.0000.00717.33
8.1.110.0040.00417.38
8.1.100.0080.00017.34
8.1.90.0050.00217.33
8.1.80.0040.00417.34
8.1.70.0000.00717.38
8.1.60.0040.00417.38
8.1.50.0040.00417.26
8.1.40.0090.00317.35
8.1.30.0060.00317.54
8.1.20.0160.00517.52
8.1.10.0220.00017.27
8.1.00.0200.00617.24
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0060.00320.04
8.0.270.0040.00419.55
8.0.260.0030.00318.27
8.0.250.0040.00416.82
8.0.240.0050.00316.70
8.0.230.0050.00316.74
8.0.220.0030.00316.80
8.0.210.0000.00716.61
8.0.200.0030.00316.70
8.0.190.0030.00516.73
8.0.180.0040.00416.80
8.0.170.0000.00816.68
8.0.160.0030.00516.64
8.0.150.0150.00616.64
8.0.140.0110.00316.54
8.0.130.0150.00616.69
8.0.120.0170.00316.57
8.0.110.0130.00816.68
8.0.100.0190.00016.59
8.0.90.0190.00016.84
8.0.80.0160.00416.70
8.0.70.0150.01016.73
8.0.60.0140.00716.66
8.0.50.0130.00716.69
8.0.30.0220.00016.61
8.0.20.0160.00716.80
8.0.10.0110.01116.84
7.4.330.0030.00315.55
7.4.320.0000.00616.37
7.4.300.0060.00016.45
7.4.290.0040.00416.20
7.4.280.0000.00816.41
7.4.270.0080.00016.37
7.4.260.0210.00016.49
7.4.250.0180.00616.37
7.4.240.0160.01116.46
7.4.230.0210.00316.46
7.4.220.0100.01016.47
7.4.210.0130.00616.48
7.4.200.0160.00316.49
7.4.190.0160.00016.42
7.4.180.0160.00316.40
7.4.160.0190.00216.52
7.4.150.0160.00316.30
7.4.140.0200.00016.37
7.4.130.0140.00616.26
7.4.120.0120.00416.09
7.4.110.0120.00616.33
7.4.100.0180.00016.36
7.4.90.0110.01016.38
7.4.80.0120.00516.23
7.4.70.0150.00016.25
7.4.60.0070.00216.28
7.4.50.0060.00316.27
7.4.40.0030.00816.07
7.4.30.0090.00016.29
7.4.20.0230.00016.21
7.4.10.0000.00916.16
7.4.00.0070.00016.18

preferences:
45.98 ms | 403 KiB | 5 Q