3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "a(bcdefghijkl(mno)pa)q"; $mystring = substr($s,18,2); echo $mystring;

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.120.0080.00220.30
8.4.110.0060.00318.84
8.4.100.0070.00118.71
8.4.90.0090.00820.60
8.4.80.0120.00818.87
8.4.70.0080.01018.70
8.4.60.0090.00420.43
8.4.50.0100.01018.45
8.4.40.0080.01119.25
8.4.30.0030.00519.71
8.4.20.0130.00720.64
8.4.10.0060.01017.48
8.3.250.0100.00617.18
8.3.240.0130.00616.66
8.3.230.0130.00616.43
8.3.220.0100.01018.78
8.3.210.0040.00416.56
8.3.200.0040.00516.66
8.3.190.0100.00819.07
8.3.180.0080.01118.82
8.3.170.0070.01116.16
8.3.160.0140.00316.92
8.3.150.0150.00318.66
8.3.140.0070.01118.77
8.3.130.0060.00318.12
8.3.120.0050.00520.71
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0030.01126.77
8.3.80.0060.00317.97
8.3.70.0070.01318.24
8.3.60.0090.00618.43
8.3.50.0050.01018.15
8.3.40.0040.01818.84
8.3.30.0060.00918.54
8.3.20.0070.00021.73
8.3.10.0050.00323.66
8.3.00.0030.00523.46
8.2.290.0100.00816.87
8.2.280.0110.00818.18
8.2.270.0180.00016.29
8.2.260.0090.00916.40
8.2.250.0040.00418.35
8.2.240.0120.00317.08
8.2.230.0040.00422.58
8.2.220.0110.00037.54
8.2.210.0130.00626.77
8.2.200.0030.00618.36
8.2.190.0130.00316.58
8.2.180.0100.01016.32
8.2.170.0100.01022.96
8.2.160.0170.00320.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00418.75
8.2.110.0000.00922.25
8.2.100.0090.00317.72
8.2.90.0030.00517.63
8.2.80.0090.00017.97
8.2.70.0000.00817.93
8.2.60.0040.00418.09
8.2.50.0080.00018.10
8.2.40.0040.00419.34
8.2.30.0070.00019.27
8.2.20.0070.00018.12
8.2.10.0000.00719.35
8.2.00.0000.00819.33
8.1.330.0140.00516.05
8.1.320.0120.00816.04
8.1.310.0140.00316.70
8.1.300.0060.00318.25
8.1.290.0040.00418.88
8.1.280.0070.00725.92
8.1.270.0050.00518.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.38
8.1.230.0070.00417.77
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0050.00317.41
8.1.180.0040.00418.10
8.1.170.0000.00818.55
8.1.160.0000.00718.71
8.1.150.0000.00718.70
8.1.140.0040.00422.13
8.1.130.0040.00417.45
8.1.120.0000.00717.42
8.1.110.0070.00217.42
8.1.100.0030.00517.43
8.1.90.0060.00317.28
8.1.80.0000.00717.44
8.1.70.0000.00717.36
8.1.60.0000.00817.52
8.1.50.0040.00417.28
8.1.40.0000.00717.45
8.1.30.0040.00417.58
8.1.20.0090.00317.54
8.1.10.0000.00817.38
8.1.00.0030.00617.35
8.0.300.0040.00421.58
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0000.00817.23
8.0.260.0070.00016.81
8.0.250.0040.00416.96
8.0.240.0000.00716.95
8.0.230.0070.00016.87
8.0.220.0030.00316.87
8.0.210.0030.00316.84
8.0.200.0030.00316.77
8.0.190.0080.00016.79
8.0.180.0000.00916.85
8.0.170.0030.00616.86
8.0.160.0050.00216.78
8.0.150.0030.00416.84
8.0.140.0070.00016.81
8.0.130.0060.00013.33
8.0.120.0080.00016.73
8.0.110.0070.00016.72
8.0.100.0070.00016.73
8.0.90.0030.00316.78
8.0.80.0060.01216.79
8.0.70.0040.00316.69
8.0.60.0040.00416.77
8.0.50.0000.00716.73
8.0.30.0030.01416.84
8.0.20.0110.00817.40
8.0.10.0040.00416.84
8.0.00.0040.01216.70
7.4.330.0020.00216.66
7.4.320.0060.00016.52
7.4.300.0060.00016.54
7.4.290.0000.00716.42
7.4.280.0030.00616.36
7.4.270.0030.00516.54
7.4.260.0040.00416.53
7.4.250.0040.00416.45
7.4.240.0000.00816.42
7.4.230.0000.00716.29
7.4.220.0000.00716.61
7.4.210.0040.01116.46
7.4.200.0000.00816.48
7.4.160.0100.00616.45
7.4.140.0090.01017.86
7.4.130.0070.01016.21
7.4.120.0120.00916.56
7.4.110.0070.01016.43
7.4.100.0030.01716.55
7.4.90.0130.00316.47
7.4.80.0100.01019.39
7.4.70.0160.00016.59
7.4.60.0060.01016.61
7.4.50.0030.01016.38
7.4.40.0080.01116.52
7.4.00.0070.01014.61
7.3.330.0030.00313.07
7.3.320.0030.00312.93
7.3.310.0000.01016.24
7.3.300.0030.00316.24
7.3.290.0020.00516.22
7.3.280.0070.00716.18
7.3.260.0100.00916.24
7.3.240.0090.00916.39
7.3.230.0150.00316.09
7.3.210.0090.00916.28
7.3.200.0100.00716.44
7.3.190.0080.00816.14
7.3.180.0040.01316.28
7.3.170.0100.00616.39
7.3.160.0130.01016.30
7.3.00.0100.00316.46
7.2.330.0040.01416.45
7.2.320.0100.00716.45
7.2.310.0090.01216.57
7.2.300.0100.00616.54
7.2.290.0040.01516.75
7.2.130.0070.00716.65
7.2.120.0060.01016.72
7.2.110.0100.00716.59
7.2.100.0100.00616.70
7.2.90.0030.01316.87
7.2.80.0100.00716.96
7.2.70.0180.00016.95
7.2.60.0090.00616.95
7.2.50.0070.01116.62
7.2.40.0150.00016.98
7.2.30.0130.00316.66
7.2.20.0070.00716.88
7.2.10.0110.00416.79
7.2.00.0090.00616.71
7.1.250.0060.00615.55
7.0.330.0090.00315.05
5.6.380.0100.00713.86

preferences:
29.18 ms | 403 KiB | 5 Q