3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "01/2/21"; //$str1 = "01"; $str2 = 1; if($str1 == $str2) { echo "Ok !!!\n"; } else { echo "Not equal\n"; } //echo var_dump($str1); //echo "\n"; //echo var_dump($str2); //echo "\n";

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.1.100.0030.00517.45
8.1.90.0030.00317.50
8.1.80.0070.00417.46
8.1.70.0030.00317.39
8.1.60.0040.00417.54
8.1.50.0080.00017.54
8.1.40.0080.00017.39
8.1.30.0040.00417.57
8.1.20.0030.00517.59
8.1.10.0000.00917.52
8.1.00.0040.00417.32
8.0.230.0030.00516.99
8.0.220.0000.00716.86
8.0.210.0070.00016.89
8.0.200.0080.00016.96
8.0.190.0000.00816.86
8.0.180.0030.00316.94
8.0.170.0000.00916.82
8.0.160.0000.00716.91
8.0.150.0000.00716.82
8.0.140.0060.00616.85
8.0.130.0000.00513.35
8.0.120.0000.00916.85
8.0.110.0070.00016.90
8.0.100.0020.00516.87
8.0.90.0000.00716.92
8.0.80.0040.00416.90
8.0.70.0000.00716.90
8.0.60.0040.00416.74
8.0.50.0070.00016.72
8.0.30.0030.00316.77
8.0.20.0040.00416.94
8.0.10.0060.00316.88
8.0.00.0000.00716.99
7.4.300.0040.00416.40
7.4.290.0070.00016.52
7.4.280.0080.00016.63
7.4.270.0000.00816.40
7.4.260.0000.00513.20
7.4.250.0030.00316.46
7.4.240.0000.00716.42
7.4.230.0000.00716.45
7.4.220.0040.00416.40
7.4.210.0040.00416.35
7.4.200.0050.00316.44
7.4.190.0030.00316.73
7.4.180.0070.00016.68
7.4.160.0070.00016.70
7.4.150.0000.00816.34
7.4.140.0000.00716.30
7.4.130.0030.00316.61
7.4.120.0070.00016.56
7.4.110.0000.00816.20
7.4.100.0040.00416.64
7.4.90.0070.00016.46
7.4.80.0030.00316.21
7.4.70.0030.00516.57
7.4.60.0000.00816.43
7.4.50.0000.00816.42
7.4.40.0040.00416.48
7.4.30.0050.00216.34
7.4.20.0040.00416.53
7.4.10.0000.00816.22
7.4.00.0030.00316.48
7.3.330.0050.00316.34
7.3.320.0000.00512.96
7.3.310.0030.00316.06
7.3.300.0030.00316.09
7.3.290.0030.00316.23
7.3.280.0000.00716.19
7.3.270.0000.00716.15
7.3.260.0060.00016.22
7.3.250.0070.00016.31
7.3.240.0030.00516.15
7.3.230.0040.00416.13
7.3.220.0040.00416.05
7.3.210.0040.00416.05
7.3.200.0000.00716.16
7.3.190.0040.00416.18
7.3.180.0040.00415.99
7.3.170.0000.00716.12
7.3.160.0030.00315.88
7.3.150.0040.00416.20
7.3.140.0000.00716.13
7.3.130.0030.00316.05
7.3.120.0040.00416.05
7.3.110.0070.00016.09
7.3.100.0030.00316.09
7.3.90.0030.00316.43
7.3.80.0000.00716.18
7.3.70.0030.00316.32
7.3.60.0070.00016.30
7.3.50.0000.00716.21
7.3.40.0030.00316.29
7.3.30.0040.00416.42
7.3.20.0000.00716.25
7.3.10.0060.00316.27
7.3.00.0140.00016.15

preferences:
11.9 ms | 406 KiB | 5 Q