3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = [['name' => 'www.test.nl', 'type' => 'A'], ['name' => 'ftp.test.nl', 'type' => 'A'], ['name' => 'lol.test.nl', 'type' => 'A']]; foreach ($records as $record) { if (in_array($record['type'], ['A', 'C']) && (strpos($record['name'], 'www.') === 0 || strpos($record['name'], 'ftp.') === 0)) { echo 'You should see this echo twice!'.PHP_EOL; } }

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.60.0150.00418.25
8.3.50.0110.00417.89
8.3.40.0070.00718.97
8.3.30.0070.00718.84
8.3.20.0080.00021.65
8.3.10.0040.00423.48
8.3.00.0070.00023.66
8.2.180.0120.00918.42
8.2.170.0110.00418.95
8.2.160.0070.00722.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0060.00326.35
8.2.110.0060.00320.51
8.2.100.0040.00717.91
8.2.90.0080.00018.16
8.2.80.0030.00519.76
8.2.70.0040.00418.05
8.2.60.0040.00418.03
8.2.50.0040.00418.16
8.2.40.0050.00319.22
8.2.30.0060.00321.20
8.2.20.0000.00718.13
8.2.10.0030.00517.98
8.2.00.0040.00717.93
8.1.280.0190.00825.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00019.28
8.1.230.0040.00720.93
8.1.220.0000.00917.76
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0050.00218.83
8.1.150.0040.00418.67
8.1.140.0000.00717.63
8.1.130.0030.00319.00
8.1.120.0070.00317.33
8.1.110.0040.00417.45
8.1.100.0030.00417.49
8.1.90.0040.00417.42
8.1.80.0060.00317.35
8.1.70.0000.00717.41
8.1.60.0030.00617.53
8.1.50.0070.00417.54
8.1.40.0000.00917.46
8.1.30.0040.00417.61
8.1.20.0000.00817.47
8.1.10.0030.00617.57
8.1.00.0050.00217.57
8.0.300.0000.00720.03
8.0.290.0060.00316.63
8.0.280.0070.00018.44
8.0.270.0060.00317.10
8.0.260.0060.00017.21
8.0.250.0070.00016.92
8.0.240.0040.00416.95
8.0.230.0070.00016.98
8.0.220.0030.00316.79
8.0.210.0000.00716.78
8.0.200.0030.00316.91
8.0.190.0040.00416.96
8.0.180.0030.00316.91
8.0.170.0040.00416.89
8.0.160.0060.00616.84
8.0.150.0070.00016.79
8.0.140.0050.00216.86
8.0.130.0060.00013.35
8.0.120.0030.00516.70
8.0.110.0030.00416.76
8.0.100.0070.00016.83
8.0.90.0040.00416.69
8.0.80.0140.00016.85
8.0.70.0000.00916.92
8.0.60.0040.00416.76
8.0.50.0040.00416.77
8.0.30.0080.01117.09
8.0.20.0130.01017.40
8.0.10.0000.00717.05
8.0.00.0100.00816.81
7.4.330.0000.00515.55
7.4.320.0000.00616.51
7.4.300.0050.00216.49
7.4.290.0070.00016.49
7.4.280.0050.00316.59
7.4.270.0070.00016.49
7.4.260.0030.00616.59
7.4.250.0070.00016.48
7.4.240.0070.00016.55
7.4.230.0000.00716.38
7.4.220.0050.00216.60
7.4.210.0080.01016.59
7.4.200.0000.00716.63
7.4.160.0090.00716.54
7.4.140.0090.00917.86
7.4.130.0070.01016.45
7.4.120.0100.00916.44
7.4.110.0100.01316.42
7.4.100.0000.01616.54
7.4.90.0170.00016.55
7.4.80.0190.00319.39
7.4.70.0110.00716.67
7.4.60.0030.01316.43
7.4.50.0040.01416.57
7.4.40.0120.01216.63
7.4.00.0100.00315.18
7.3.330.0060.00013.25
7.3.320.0030.00313.21
7.3.310.0070.00016.39
7.3.300.0030.00316.16
7.3.290.0030.00316.18
7.3.280.0030.01416.19
7.3.260.0100.00616.28
7.3.240.0100.01016.50
7.3.230.0150.00516.35
7.3.210.0130.01016.38
7.3.200.0030.01716.43
7.3.190.0030.01916.32
7.3.180.0160.00016.22
7.3.170.0150.00016.36
7.3.160.0000.01616.59
7.2.330.0160.00016.57
7.2.320.0040.01216.44
7.2.310.0060.01216.61
7.2.300.0170.00316.76
7.2.290.0060.01316.87
7.2.60.0070.01016.94
7.2.40.3510.00817.97
7.2.30.2620.01218.22
7.2.20.2770.01117.68
7.2.10.2320.01017.92
7.2.00.3250.01017.58
7.1.200.0040.01215.94
7.1.160.2780.00516.96
7.1.150.2460.00516.99
7.1.140.2300.01016.54
7.1.130.4840.01016.30
7.1.120.2140.00516.69
7.1.110.2560.00616.18
7.1.100.0080.00816.04
7.1.90.2880.00815.91
7.1.80.2780.00915.84
7.1.70.2800.00815.42
7.1.60.3870.01433.33
7.1.50.0200.01832.96
7.1.40.0610.01532.41
7.1.30.0230.01332.74
7.1.20.1360.01132.71
7.1.10.1170.00814.83
7.1.00.0090.00714.95

preferences:
79.7 ms | 401 KiB | 5 Q