3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "On first glance, the following appears to output 'true' "; print_r(substr($string, "true")); print_r(stristr($string, " ' ")); print_r(substr($string, strpos($string, " ' ")+1, 4)); print_r(substr($string, strpos($string, " ' "), 4));

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.0090.00916.50
8.3.50.0070.01121.93
8.3.40.0110.00418.79
8.3.30.0060.00918.66
8.3.20.0040.00420.30
8.3.10.0040.00423.48
8.3.00.0080.00019.50
8.2.180.0030.01216.88
8.2.170.0080.00822.96
8.2.160.0000.01420.49
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0090.00319.48
8.2.120.0040.00426.35
8.2.110.0100.00020.25
8.2.100.0070.00417.72
8.2.90.0030.00517.99
8.2.80.0080.00017.97
8.2.70.0000.00817.80
8.2.60.0050.00218.22
8.2.50.0030.00518.07
8.2.40.0050.00319.34
8.2.30.0070.00020.56
8.2.20.0040.00417.63
8.2.10.0000.00718.03
8.2.00.0040.00418.08
8.1.280.0070.00725.92
8.1.270.0050.00323.88
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0090.00023.72
8.1.230.0090.00321.93
8.1.220.0060.00317.74
8.1.210.0080.00018.79
8.1.200.0000.00817.35
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0050.00318.70
8.1.160.0000.00821.96
8.1.150.0000.00818.71
8.1.140.0080.00019.56
8.1.130.0030.00317.65
8.1.120.0000.00717.39
8.1.110.0000.00717.46
8.1.100.0040.00417.47
8.1.90.0030.00417.31
8.1.80.0020.00517.46
8.1.70.0040.00417.22
8.1.60.0080.00017.42
8.1.50.0060.00317.50
8.1.40.0030.00617.47
8.1.30.0000.00917.55
8.1.20.0000.00817.46
8.1.10.0050.00317.55
8.1.00.0040.00417.50
8.0.300.0000.00719.94
8.0.290.0030.00616.75
8.0.280.0050.00318.45
8.0.270.0000.00717.20
8.0.260.0000.00617.15
8.0.250.0000.00716.95
8.0.240.0100.00016.97
8.0.230.0050.00316.87
8.0.220.0000.00716.86
8.0.210.0050.00216.87
8.0.200.0070.00016.90
8.0.190.0000.00716.88
8.0.180.0040.00417.01
8.0.170.0070.00016.92
8.0.160.0040.00416.83
8.0.150.0000.00716.81
8.0.140.0070.00016.78
8.0.130.0060.00013.38
8.0.120.0030.00516.81
8.0.110.0070.00016.88
8.0.100.0040.00416.86
8.0.90.0000.00716.87
8.0.80.0140.00616.97
8.0.70.0080.00016.93
8.0.60.0000.00816.90
8.0.50.0040.00416.78
8.0.30.0090.00916.96
8.0.20.0070.01217.40
8.0.10.0000.00717.00
8.0.00.0080.00916.70
7.4.330.0000.00516.70
7.4.320.0030.00316.56
7.4.300.0070.00016.38
7.4.290.0030.00316.55
7.4.280.0000.00816.42
7.4.270.0000.00716.52
7.4.260.0030.00316.46
7.4.250.0040.00416.43
7.4.240.0050.00216.48
7.4.230.0030.00316.37
7.4.220.0100.00916.64
7.4.210.0100.00316.45
7.4.200.0030.00316.45
7.4.160.0030.01616.30
7.4.150.0060.01217.40
7.4.140.0120.00717.86
7.4.130.0030.01416.49
7.4.120.0060.01816.38
7.4.110.0070.01716.56
7.4.100.0060.01316.60
7.4.90.0110.00616.45
7.4.80.0150.00719.39
7.4.70.0070.01016.42
7.4.60.0150.00916.55
7.4.50.0000.01416.41
7.4.40.0040.01216.47
7.4.30.0070.01016.62
7.4.00.0090.00614.73
7.3.330.0030.00313.00
7.3.320.0030.00313.04
7.3.310.0070.00016.28
7.3.300.0000.00716.31
7.3.290.0090.00716.26
7.3.280.0090.01116.29
7.3.270.0180.00717.40
7.3.260.0100.00616.32
7.3.250.0100.00716.30
7.3.240.0130.00616.50
7.3.230.0130.00616.39
7.3.210.0080.00816.46
7.3.200.0030.01316.39
7.3.190.0140.00616.40
7.3.180.0120.00616.36
7.3.170.0130.00716.33
7.3.160.0040.01116.46
7.2.330.0130.00616.65
7.2.320.0170.00816.61
7.2.310.0100.00616.57
7.2.300.0060.01116.50
7.2.290.0100.01216.44
7.2.60.0070.01016.65
7.2.00.0000.01619.02
7.1.200.0030.00915.42
7.1.100.0060.00617.91
7.1.70.0030.00617.20
7.1.60.0060.01819.48
7.1.50.0030.01716.78
7.1.00.0070.07322.40
7.0.200.0330.00714.81
7.0.100.0030.05319.90
7.0.90.0170.07719.91
7.0.80.0300.08019.89
7.0.70.0230.07719.96
7.0.60.0070.08020.08
7.0.50.0130.07720.27
7.0.40.0170.04320.05
7.0.30.0030.06320.05
7.0.20.0030.08020.10
7.0.10.0070.07720.10
7.0.00.0130.04320.12
5.6.280.0000.03321.15
5.6.250.0030.08720.71
5.6.240.0030.08720.75
5.6.230.0070.07020.65
5.6.220.0000.06720.67
5.6.210.0070.08020.65
5.6.200.0070.07021.07
5.6.190.0030.05721.08
5.6.180.0130.07721.16
5.6.170.0200.07321.02
5.6.160.0100.03721.04
5.6.150.0130.08021.01
5.6.140.0030.07321.10
5.6.130.0030.08321.11
5.6.120.0100.07321.04
5.6.110.0170.07720.95
5.6.100.0130.04321.02
5.6.90.0100.06721.08
5.6.80.0100.04720.31
5.6.70.0000.06720.45
5.6.60.0070.04720.45
5.6.50.0030.05720.38
5.6.40.0030.04020.36
5.6.30.0030.08020.31
5.6.20.0130.04320.35
5.6.10.0070.05720.39
5.6.00.0030.08020.34
5.5.380.0230.06720.45
5.5.370.0100.04020.38
5.5.360.0070.08320.50
5.5.350.0170.06720.41
5.5.340.0030.05320.90
5.5.330.0000.09020.91
5.5.320.0100.08320.93
5.5.310.0130.06320.79
5.5.300.0070.08320.79
5.5.290.0130.05320.79
5.5.280.0030.08720.90
5.5.270.0100.06720.89
5.5.260.0070.06320.85
5.5.250.0130.08320.63
5.5.240.0100.07320.26
5.5.230.0100.07320.25
5.5.220.0100.04320.25
5.5.210.0130.07320.14
5.5.200.0100.05720.23
5.5.190.0170.05320.10
5.5.180.0130.06720.12
5.5.160.0100.08720.16
5.5.150.0170.06020.07
5.5.140.0070.06020.20
5.5.130.0100.04320.14
5.5.120.0100.03720.23
5.5.110.0070.04320.22
5.5.100.0200.04020.09
5.5.90.0200.06720.06
5.5.80.0100.07020.15
5.5.70.0070.06320.14
5.5.60.0200.03020.09
5.5.50.0030.04720.04
5.5.40.0030.06720.10
5.5.30.0070.04720.04
5.5.20.0030.05320.04
5.5.10.0100.03720.09
5.5.00.0100.04320.11

preferences:
53.88 ms | 401 KiB | 5 Q