3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "ab\0c"; if (str_contains($filename, "\0")) { echo "bad filename\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.4.10.0060.00319.22
8.3.140.0150.00316.45
8.3.130.0080.00018.36
8.3.120.0060.00318.73
8.3.110.0060.00320.94
8.3.100.0000.01124.06
8.3.90.0090.00626.77
8.3.80.0090.00016.13
8.3.70.0120.00416.61
8.3.60.0070.01016.38
8.3.50.0100.00823.61
8.3.40.0040.01121.86
8.3.30.0090.01218.71
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.260.0040.01418.21
8.2.250.0070.01418.45
8.2.240.0050.00318.81
8.2.230.0030.00722.58
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0070.00316.38
8.2.190.0110.00316.58
8.2.180.0140.00425.92
8.2.170.0070.01418.71
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0030.00620.41
8.2.100.0060.00617.66
8.2.90.0030.00517.91
8.2.80.0060.00322.21
8.2.70.0060.00317.63
8.2.60.0040.00417.50
8.2.50.0030.00617.50
8.2.40.0000.00919.23
8.2.30.0050.00217.90
8.2.20.0000.00818.05
8.2.10.0040.00419.06
8.2.00.0040.00419.24
8.1.300.0040.00415.93
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0040.00420.76
8.1.230.0050.00522.14
8.1.220.0050.00317.74
8.1.210.0060.00618.77
8.1.200.0040.00417.22
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0000.00718.77
8.1.150.0000.00718.82
8.1.140.0000.00718.74
8.1.130.0030.00320.13
8.1.120.0000.00817.44
8.1.110.0040.00417.41
8.1.100.0040.00417.29
8.1.90.0050.00217.38
8.1.80.0100.00017.42
8.1.70.0030.00317.46
8.1.60.0060.00317.52
8.1.50.0000.00817.45
8.1.40.0100.00017.38
8.1.30.0040.00417.60
8.1.20.0040.00417.50
8.1.10.0040.00417.35
8.1.00.0070.00317.46
8.0.300.0040.00419.85
8.0.290.0000.00816.75
8.0.280.0050.00318.34
8.0.270.0070.00018.00
8.0.260.0030.00318.54
8.0.250.0040.00416.88
8.0.240.0040.00416.88
8.0.230.0000.00716.89
8.0.220.0040.00416.74
8.0.210.0000.00716.73
8.0.200.0070.00016.85
8.0.190.0000.00816.87
8.0.180.0070.00016.82
8.0.170.0030.00616.83
8.0.160.0070.00016.74
8.0.150.0000.00716.76
8.0.140.0040.00816.79
8.0.130.0050.00013.24
8.0.120.0000.00716.86
8.0.110.0000.00716.70
8.0.100.0040.00416.91
8.0.90.0000.00716.66
8.0.80.0090.00916.84
8.0.70.0040.00416.67
8.0.60.0040.00416.89
8.0.50.0000.00716.71
8.0.30.0060.00917.04
8.0.20.0140.00517.06
8.0.10.0080.00016.84
8.0.00.0150.00316.70
7.4.330.0000.00515.55
7.4.320.0060.00316.57
7.4.300.0070.00016.51
7.4.290.0000.00816.55
7.4.280.0000.00816.60
7.4.270.0030.00316.53
7.4.260.0030.00313.38
7.4.250.0000.00716.57
7.4.240.0000.00716.54
7.4.230.0040.00416.71
7.4.220.0040.00316.59
7.4.210.0080.00816.52
7.4.200.0040.00416.54
7.4.130.0030.02016.46
7.4.120.0150.00516.53
7.4.110.0110.00816.46
7.4.100.0170.00316.50
7.4.90.0090.01516.55
7.4.80.0140.00916.64
7.4.70.0140.00316.56
7.4.60.0120.00616.64
7.4.50.0160.00816.41
7.4.40.0090.00916.42
7.4.30.0100.01016.36
7.4.20.0170.00716.50
7.4.10.0050.01416.72
7.4.00.0120.00616.70
7.3.330.0030.00516.34
7.3.320.0000.00613.18
7.3.310.0030.00316.11
7.3.300.0050.00216.18
7.3.290.0060.00816.28
7.3.260.0180.00316.34
7.3.250.0120.01116.20
7.3.240.0180.00416.24
7.3.230.0070.01416.24
7.3.220.0100.01316.25
7.3.210.0080.01116.34
7.3.200.0110.01216.33
7.3.190.0090.00916.28
7.3.180.0130.01016.24
7.3.170.0070.01316.43
7.3.160.0090.01216.22
7.3.150.0060.01216.30
7.3.140.0090.01216.52
7.3.130.0140.01016.20
7.3.120.0080.01216.50
7.3.110.0250.00016.30
7.3.100.0060.01116.41
7.3.90.0040.01516.45
7.3.80.0120.00816.30
7.3.70.0160.00816.41
7.3.60.0090.01516.19
7.3.50.0130.01016.36
7.3.40.0230.00016.30
7.3.30.0140.00716.39
7.3.20.0080.01316.36
7.3.10.0090.00916.26
7.3.00.0170.01416.26

preferences:
33.28 ms | 403 KiB | 5 Q