3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "www.example.com/myfile.php?input=John1"; if (!strpos($input, "[")) echo "input is valid";

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.70.0070.00716.50
8.3.60.0140.00418.31
8.3.50.0040.01417.99
8.3.40.0040.01118.68
8.3.30.0040.01118.51
8.3.20.0040.00418.57
8.3.10.0000.00821.95
8.3.00.0000.00821.85
8.2.190.0040.01116.58
8.2.180.0090.00616.32
8.2.170.0150.00022.96
8.2.160.0110.00419.00
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00821.00
8.2.120.0070.00026.35
8.2.110.0030.00621.18
8.2.100.0090.00417.89
8.2.90.0040.00417.65
8.2.80.0050.00517.97
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0080.00019.09
8.2.30.0000.00720.53
8.2.20.0040.00417.93
8.2.10.0000.00718.16
8.2.00.0040.00418.09
8.1.280.0070.00725.92
8.1.270.0030.00520.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.92
8.1.230.0040.00722.77
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0080.00417.22
8.1.190.0050.00317.13
8.1.180.0040.00818.10
8.1.170.0080.00218.32
8.1.160.0070.00018.92
8.1.150.0040.00418.89
8.1.140.0000.00820.80
8.1.130.0060.00020.19
8.1.120.0030.00417.48
8.1.110.0040.00417.35
8.1.100.0020.00517.46
8.1.90.0040.00417.45
8.1.80.0040.00417.38
8.1.70.0070.00017.44
8.1.60.0000.00817.59
8.1.50.0070.00017.50
8.1.40.0000.00817.39
8.1.30.0050.00317.65
8.1.20.0000.00717.66
8.1.10.0080.00017.53
8.1.00.0000.00717.30
8.0.300.0000.00719.62
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0030.00317.25
8.0.260.0060.00022.06
8.0.250.0030.00316.90
8.0.240.0030.00617.00
8.0.230.0030.00516.98
8.0.220.0000.00616.78
8.0.210.0000.00716.93
8.0.200.0000.00716.96
8.0.190.0040.00416.87
8.0.180.0080.00016.95
8.0.170.0000.00816.79
8.0.160.0000.00816.91
8.0.150.0070.00016.70
8.0.140.0070.00016.74
8.0.130.0050.00013.25
8.0.120.0000.00816.75
8.0.110.0000.00816.88
8.0.100.0040.00416.94
8.0.90.0040.00416.94
8.0.80.0090.00916.87
8.0.70.0040.00416.95
8.0.60.0070.00016.80
8.0.50.0050.00216.76
8.0.30.0080.01017.13
8.0.20.0070.01417.40
8.0.10.0040.00417.11
8.0.00.0080.01116.69
7.4.330.0040.00015.55
7.4.320.0030.00316.42
7.4.300.0040.00416.57
7.4.290.0000.00716.49
7.4.280.0000.00716.59
7.4.270.0020.00516.63
7.4.260.0080.00016.61
7.4.250.0040.00416.40
7.4.240.0070.00016.53
7.4.230.0030.00316.61
7.4.220.0030.00516.36
7.4.210.0070.00916.52
7.4.200.0050.00216.52
7.4.160.0080.01016.43
7.4.140.0120.00717.86
7.4.130.0090.00816.41
7.4.120.0090.00916.44
7.4.110.0130.00316.40
7.4.100.0080.00816.32
7.4.90.0110.00716.39
7.4.80.0070.01019.39
7.4.70.0140.00316.35
7.4.60.0110.00516.43
7.4.50.0120.00316.49
7.4.40.0140.00316.49
7.4.00.0040.01115.14
7.3.330.0030.00312.93
7.3.320.0030.00312.90
7.3.310.0000.00816.20
7.3.300.0060.00016.13
7.3.290.0070.00016.13
7.3.280.0090.01016.11
7.3.260.0100.01016.35
7.3.240.0130.00416.26
7.3.230.0070.01016.19
7.3.210.0030.01416.39
7.3.200.0030.01316.12
7.3.190.0130.00616.41
7.3.180.0130.00516.39
7.3.170.0120.00316.36
7.3.160.0030.01316.30
7.3.120.0000.01414.90
7.3.110.0000.01514.23
7.3.100.0000.01014.94
7.3.90.0060.00914.72
7.3.80.0040.00814.60
7.3.70.0100.00314.79
7.3.60.0040.01214.74
7.3.50.0000.01414.63
7.3.40.0030.01014.80
7.3.30.0090.00614.82
7.3.20.0100.00716.52
7.3.10.0100.00316.59
7.3.00.0040.01116.51
7.2.330.0140.00516.18
7.2.320.0090.00616.60
7.2.310.0050.01116.57
7.2.300.0100.00616.61
7.2.290.0080.00816.53
7.2.240.0070.00715.04
7.2.230.0040.01114.76
7.2.220.0040.01115.05
7.2.210.0100.00314.79
7.2.200.0000.01414.95
7.2.190.0000.01014.89
7.2.180.0000.00814.80
7.2.170.0040.00714.82
7.2.160.0070.00714.55
7.2.150.0050.00516.51
7.2.140.0070.00716.94
7.2.130.0060.00616.83
7.2.120.0030.00916.69
7.2.110.0100.00316.79
7.2.100.0940.00515.59
7.2.90.1210.01015.78
7.2.80.1160.00515.57
7.2.70.1200.00815.64
7.2.60.0980.00715.92
7.2.50.1360.00515.84
7.2.40.1170.01015.79
7.2.30.1370.00815.99
7.2.20.1030.00915.80
7.2.10.1170.01015.83
7.2.00.1390.00715.89
7.1.330.0090.00615.81
7.1.320.0070.00715.86
7.1.310.0060.00615.64
7.1.300.0030.01015.48
7.1.290.0030.01015.64
7.1.280.0110.00315.65
7.1.270.0000.01415.48
7.1.260.0030.01015.56
7.1.250.0040.01115.84
7.1.220.1570.00613.80
7.1.210.1660.01613.72
7.1.200.1940.00013.44
7.1.190.1790.00713.84
7.1.180.2520.01013.60
7.1.170.1770.00613.91
7.1.160.2580.00013.96
7.1.150.2060.00613.62
7.1.140.2070.01013.67
7.1.130.2830.01013.70
7.1.120.2330.00313.83
7.1.110.2890.00713.93
7.1.100.2860.00613.88
7.1.90.2520.01013.96
7.1.80.2400.01013.85
7.1.70.3070.00013.84
7.1.60.3080.01031.82
7.1.50.3560.01031.56
7.1.40.3000.01331.69
7.1.30.2640.01631.80
7.1.20.2850.01031.71
7.1.10.2750.01013.52
7.1.00.2650.00313.67
5.6.380.0100.00314.16

preferences:
54.61 ms | 401 KiB | 5 Q