3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '123'; $b = '0123'; if ($a == $b && is_string($a) && is_string($b) && strlen($a) !== strlen($b)) { echo 'This line will run.'; }

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.70.0140.00016.58
8.3.60.0040.01518.19
8.3.50.0070.01017.97
8.3.40.0070.00718.97
8.3.30.0140.00718.32
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.190.0090.01218.54
8.2.180.0110.00725.92
8.2.170.0100.01018.91
8.2.160.0070.00722.96
8.2.150.0020.00525.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0140.00321.01
8.2.110.0050.00522.05
8.2.100.0040.00819.51
8.2.90.0000.00817.63
8.2.80.0080.00018.61
8.2.70.0030.00517.50
8.2.60.0090.00017.79
8.2.50.0080.00318.07
8.2.40.0030.00618.16
8.2.30.0040.00417.89
8.2.20.0000.00717.92
8.2.10.0040.00419.23
8.2.00.0000.00719.23
8.1.280.0130.00325.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00420.47
8.1.230.0070.00717.77
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0040.00418.87
8.1.150.0070.00018.88
8.1.140.0040.00420.66
8.1.130.0000.00720.13
8.1.120.0040.00417.46
8.1.110.0000.00717.45
8.1.100.0060.00317.40
8.1.90.0030.00917.35
8.1.80.0040.00417.45
8.1.70.0000.00717.43
8.1.60.0020.00517.52
8.1.50.0060.00317.52
8.1.40.0020.00517.47
8.1.30.0070.00017.67
8.1.20.0030.00517.63
8.1.10.0000.00817.39
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0040.00417.93
8.0.260.0000.00618.55
8.0.250.0040.00416.95
8.0.240.0030.00316.96
8.0.230.0030.00316.95
8.0.220.0000.00716.84
8.0.210.0030.00316.73
8.0.200.0000.00716.83
8.0.190.0000.00816.97
8.0.180.0050.00316.99
8.0.170.0080.00016.91
8.0.160.0040.00416.93
8.0.150.0030.00516.80
8.0.140.0050.00216.82
8.0.130.0000.00513.27
8.0.120.0080.00016.73
8.0.110.0040.00416.93
8.0.100.0070.00016.78
8.0.90.0040.00416.83
8.0.80.0090.01016.81
8.0.70.0200.00716.80
8.0.60.0190.01616.64
8.0.50.0170.01116.77
8.0.30.0260.00816.86
8.0.20.0160.00816.80
8.0.10.0110.01116.94
8.0.00.0100.01316.96
7.4.330.0040.00015.55
7.4.320.0000.00616.40
7.4.300.0000.00716.56
7.4.290.0000.00716.55
7.4.280.0040.00416.57
7.4.270.0030.00316.63
7.4.260.0000.00513.28
7.4.250.0030.00516.57
7.4.240.0040.00416.50
7.4.230.0040.00416.59
7.4.220.0000.00716.68
7.4.210.0090.00616.60
7.4.200.0220.00916.52
7.4.190.0080.01516.60
7.4.180.0140.00916.58
7.4.160.0110.01516.62
7.4.150.0300.00416.34
7.4.140.0150.01116.38
7.4.130.0070.01616.37
7.4.120.0090.01216.51
7.4.110.0060.01416.39
7.4.100.0140.00616.57
7.4.90.0130.00316.39
7.4.80.0060.01116.50
7.4.70.0130.01316.28
7.4.60.0370.00816.25
7.4.50.0230.00616.24
7.4.40.0210.00716.25
7.4.30.0190.01016.48
7.4.20.0190.01116.48
7.4.10.0150.01216.44
7.4.00.0160.01316.57
7.3.330.0020.00516.41
7.3.320.0000.00513.13
7.3.310.0040.00416.24
7.3.300.0070.00016.22
7.3.290.0090.00816.31
7.3.280.0310.00216.21
7.3.270.0190.01116.26
7.3.260.0170.01416.23
7.3.250.0280.01216.25
7.3.240.0210.01316.35
7.3.230.0150.01116.26
7.3.220.0210.00316.20
7.3.210.0180.01216.22
7.3.200.0250.00316.17
7.3.190.0200.01216.20
7.3.180.0260.00716.15
7.3.170.0260.00716.30
7.3.160.0220.01016.25
7.3.150.0180.01716.20
7.3.140.0240.00716.30
7.3.130.0220.00916.23
7.3.120.0220.00616.29
7.3.110.0200.00916.13
7.3.100.0260.00516.14
7.3.90.0240.00716.40
7.3.80.0290.00416.13
7.3.70.0260.00616.24
7.3.60.0220.00816.40
7.3.50.0210.01216.26
7.3.40.0210.00716.34
7.3.30.0230.00916.27
7.3.20.0230.00916.48
7.3.10.0280.01316.34
7.3.00.0330.00516.39

preferences:
50.86 ms | 401 KiB | 5 Q