3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "0By"; echo strstr($s, 'By', true) ?: $s; // should be "0", but it is "0By" because of the loose ternary check

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.130.0080.00218.58
8.4.120.0090.00524.18
8.4.110.0110.01020.43
8.4.100.0050.00317.74
8.4.90.0130.00717.63
8.4.80.0140.00519.52
8.4.70.0090.01017.70
8.4.60.0130.00618.49
8.4.50.0150.00517.64
8.4.40.0090.00617.59
8.4.30.0160.00320.20
8.4.20.0040.00419.54
8.4.10.0080.00817.56
8.3.260.0120.00716.42
8.3.250.0100.00918.91
8.3.240.0080.01116.96
8.3.230.0130.00816.42
8.3.220.0140.00416.77
8.3.210.0120.00816.84
8.3.200.0050.00316.79
8.3.190.0100.00920.56
8.3.180.0080.01116.45
8.3.170.0150.00417.09
8.3.160.0110.00716.36
8.3.150.0100.01018.86
8.3.140.0070.00717.03
8.3.130.0160.00618.42
8.3.120.0100.00018.79
8.3.110.0040.00416.62
8.3.100.0030.00618.30
8.3.90.0080.00026.77
8.3.80.0110.00416.63
8.3.70.0110.00716.58
8.3.60.0080.00816.38
8.3.50.0030.01019.95
8.3.40.0120.00318.81
8.3.30.0120.00318.59
8.3.20.0000.01024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0120.00718.67
8.2.280.0040.00518.47
8.2.270.0060.01216.60
8.2.260.0030.01418.73
8.2.250.0060.01218.21
8.2.240.0110.00717.12
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0000.01118.29
8.2.190.0120.00317.98
8.2.180.0140.00325.92
8.2.170.0030.01222.96
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0050.00326.16
8.2.110.0070.00322.20
8.2.100.0000.01217.72
8.2.90.0050.00319.13
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0060.00317.63
8.2.50.0060.00317.55
8.2.40.0040.00419.35
8.2.30.0000.00817.65
8.2.20.0000.00719.30
8.2.10.0060.00217.72
8.2.00.0080.00019.21
8.1.330.0080.01115.98
8.1.320.0070.00916.23
8.1.310.0110.00416.80
8.1.300.0030.00617.87
8.1.290.0030.01030.84
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0090.00928.09
8.1.240.0040.00422.20
8.1.230.0040.00719.00
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0000.00817.53
8.1.180.0080.00018.10
8.1.170.0000.00719.08
8.1.160.0040.00418.89
8.1.150.0060.00318.50
8.1.140.0040.00417.31
8.1.130.0030.00318.85
8.1.120.0070.00017.41
8.1.110.0000.00817.36
8.1.100.0000.00717.40
8.1.90.0060.00417.39
8.1.80.0040.01017.33
8.1.70.0090.00417.36
8.1.60.0120.00217.56
8.1.50.0080.00717.48
8.1.40.0110.00517.52
8.1.30.0080.00517.58
8.1.20.0080.00717.55
8.1.10.0080.00517.43
8.1.00.0100.00317.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00817.96
8.0.270.0000.00716.73
8.0.260.0030.00318.43
8.0.250.0000.00716.91
8.0.240.0070.00016.99
8.0.230.0000.00716.95
8.0.220.0050.00316.85
8.0.210.0050.00716.85
8.0.200.0080.00416.94
8.0.190.0070.00716.92
8.0.180.0090.00416.81
8.0.170.0090.00416.90
8.0.160.0070.00416.81
8.0.150.0050.00516.73
8.0.140.0060.00716.80
8.0.130.0090.00315.89
8.0.120.0090.00415.95
8.0.110.0100.00315.95
8.0.100.0100.00315.99
8.0.90.0080.00515.97
8.0.80.0100.00315.91
8.0.70.0060.00615.88
8.0.60.0060.00515.87
8.0.50.0070.00515.93
8.0.30.0080.00515.84
8.0.20.0050.00816.05
8.0.10.0050.00616.00
8.0.00.0050.00616.04
7.4.330.0040.00015.55
7.4.320.0070.00016.36
7.4.300.0090.00516.49
7.4.290.0090.00416.49
7.4.280.0060.00516.46
7.4.270.0080.00316.43
7.4.260.0100.00315.69
7.4.250.0110.00215.71
7.4.240.0100.00515.64
7.4.230.0110.00315.64
7.4.220.0110.00315.65
7.4.210.0080.00515.71
7.4.200.0080.00415.63
7.4.190.0080.00415.68
7.4.180.0070.00515.71
7.4.160.0090.00315.56
7.4.150.0080.00415.63
7.4.140.0080.00615.58
7.4.130.0100.00215.52
7.4.120.0080.00315.44
7.4.110.0090.00315.59
7.4.100.0070.00515.57
7.4.90.0070.00515.54
7.4.80.0070.00515.49
7.4.70.0070.00515.47
7.4.60.0090.00315.48
7.4.50.0050.00615.40
7.4.40.0080.00415.50
7.4.30.0080.00315.49
7.4.20.0080.00315.44
7.4.10.0070.00415.44
7.4.00.0090.00315.55
7.3.330.0090.00616.17
7.3.320.0150.00215.30
7.3.310.0100.00615.35
7.3.300.0130.00315.29
7.3.290.0130.00315.28
7.3.280.0140.00415.28
7.3.270.0110.00715.20
7.3.260.0110.00515.26
7.3.250.0130.00415.25
7.3.240.0110.00515.35
7.3.230.0120.00315.30
7.3.220.0100.00515.30
7.3.210.0100.00515.19
7.3.200.0130.00215.18
7.3.190.0130.00315.26
7.3.180.0140.00215.21
7.3.170.0120.00415.19
7.3.160.0130.00315.26
7.3.150.0120.00415.23
7.3.140.0120.00315.27
7.3.130.0130.00315.21
7.3.120.0130.00315.23
7.3.110.0140.00215.12
7.3.100.0110.00415.15
7.3.90.0100.00315.47
7.3.80.0110.00415.26
7.3.70.0100.00515.44
7.3.60.0120.00215.49
7.3.50.0130.00415.51
7.3.40.0100.00515.50
7.3.30.0100.00415.49
7.3.20.0110.00416.79
7.3.10.0120.00416.77
7.3.00.0100.00516.76
7.0.310.0140.00679.33

preferences:
29.98 ms | 403 KiB | 5 Q