3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_string = "some:really_long:thing:with:stuff"; var_dump(strpos('some:', $my_string)); var_dump(preg_match('/^some:/', $my_string));

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.0150.00318.53
8.3.50.0170.00018.02
8.3.40.0080.00818.84
8.3.30.0110.00418.79
8.3.20.0120.00618.82
8.3.10.0050.00521.91
8.3.00.0070.00020.67
8.2.180.0060.01218.54
8.2.170.0070.01122.96
8.2.160.0130.00022.38
8.2.150.0050.00224.18
8.2.140.0070.00024.66
8.2.130.0040.00419.76
8.2.120.0040.00426.35
8.2.110.0060.00320.53
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0030.00617.97
8.2.70.0080.00017.92
8.2.60.0020.00518.09
8.2.50.0090.00218.10
8.2.40.0040.00419.34
8.2.30.0030.00519.18
8.2.20.0000.00717.99
8.2.10.0040.00417.91
8.2.00.0050.00317.72
8.1.280.0070.00725.92
8.1.270.0040.00418.74
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.01423.97
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00718.88
8.1.150.0000.00718.83
8.1.140.0030.00522.09
8.1.130.0030.00320.28
8.1.120.0070.00017.56
8.1.110.0070.00017.43
8.1.100.0000.00717.47
8.1.90.0000.00717.44
8.1.80.0000.00817.51
8.1.70.0000.00717.47
8.1.60.0030.00617.68
8.1.50.0040.00417.56
8.1.40.0030.00617.59
8.1.30.0030.00617.57
8.1.20.0000.00717.62
8.1.10.0040.00417.52
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0070.00018.31
8.0.270.0030.00317.25
8.0.260.0060.00018.30
8.0.250.0040.00416.98
8.0.240.0000.00717.09
8.0.230.0000.00717.02
8.0.220.0030.00716.93
8.0.210.0050.00316.91
8.0.200.0040.00416.95
8.0.190.0080.00016.91
8.0.180.0080.00016.96
8.0.170.0000.00916.94
8.0.160.0000.00816.96
8.0.150.0040.00416.97
8.0.140.0030.00516.93
8.0.130.0050.00013.32
8.0.120.0000.00916.96
8.0.110.0000.00716.83
8.0.100.0020.00516.80
8.0.90.0000.00716.92
8.0.80.0030.01216.96
8.0.70.0040.00417.02
8.0.60.0030.00516.98
8.0.50.0000.00716.80
8.0.30.0110.00816.99
8.0.20.0090.01017.40
8.0.10.0000.00717.15
8.0.00.0130.00516.85
7.4.330.0030.00315.55
7.4.320.0070.00016.65
7.4.300.0040.00416.68
7.4.290.0000.00716.74
7.4.280.0030.00516.67
7.4.270.0060.00316.71
7.4.260.0100.00016.56
7.4.250.0000.00816.65
7.4.240.0050.00216.54
7.4.230.0000.00716.64
7.4.220.0000.00716.55
7.4.210.0080.00816.71
7.4.200.0000.00716.55
7.4.160.0090.00916.61
7.4.140.0090.01017.86
7.4.130.0120.00616.52
7.4.120.0060.01316.63
7.4.110.0070.01716.52
7.4.100.0140.00716.86
7.4.90.0070.01116.45
7.4.80.0130.01219.39
7.4.70.0120.00616.56
7.4.60.0070.01016.52
7.4.50.0090.00916.50
7.4.40.0100.01016.60
7.3.330.0050.00013.00
7.3.320.0000.00513.11
7.3.310.0040.00416.32
7.3.300.0070.00016.29
7.3.290.0070.00016.16
7.3.280.0090.00816.26
7.3.260.0090.00916.45
7.3.240.0110.00716.35
7.3.230.0040.01316.69
7.3.210.0140.00716.81
7.3.200.0070.01216.59
7.3.190.0060.01316.54
7.3.180.0090.01216.36
7.3.170.0090.01016.66
7.3.160.0130.00316.68
7.2.330.0060.01216.51
7.2.320.0120.01216.34
7.2.310.0070.01716.38
7.2.300.0100.00716.61
7.2.290.0120.00416.56

preferences:
55.52 ms | 401 KiB | 5 Q