3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'var file = "some url here";'; preg_match('/var file = "(.*)";/', $str, $matches); echo $matches[1];

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.0100.00718.55
8.3.60.0100.01018.15
8.3.50.0150.00321.13
8.3.40.0110.00418.72
8.3.30.0070.00718.92
8.3.20.0080.00021.73
8.3.10.0070.00021.95
8.3.00.0070.00022.39
8.2.190.0150.00416.96
8.2.180.0090.00618.66
8.2.170.0130.00322.96
8.2.160.0170.00322.21
8.2.150.0000.01124.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.98
8.2.110.0060.00321.16
8.2.100.0000.01218.09
8.2.90.0060.00318.16
8.2.80.0000.00818.03
8.2.70.0000.00817.93
8.2.60.0040.00418.09
8.2.50.0060.00318.10
8.2.40.0000.00719.43
8.2.30.0000.00819.34
8.2.20.0000.00718.08
8.2.10.0000.00819.15
8.2.00.0000.00819.08
8.1.280.0100.01025.92
8.1.270.0040.00420.68
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00022.19
8.1.230.0080.00422.63
8.1.220.0030.00517.78
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00818.48
8.1.160.0050.00319.09
8.1.150.0000.00718.86
8.1.140.0040.00420.82
8.1.130.0030.00320.17
8.1.120.0000.00917.57
8.1.110.0040.00417.44
8.1.100.0040.00417.49
8.1.90.0030.00317.52
8.1.80.0000.00717.54
8.1.70.0040.00417.55
8.1.60.0000.00817.71
8.1.50.0000.00817.54
8.1.40.0000.00817.50
8.1.30.0080.00017.70
8.1.20.0080.00317.77
8.1.10.0000.00817.79
8.1.00.0030.00617.68
8.0.300.0080.00021.91
8.0.290.0050.00516.88
8.0.280.0030.00318.47
8.0.270.0050.00317.28
8.0.260.0000.00620.13
8.0.250.0030.00317.09
8.0.240.0040.00417.09
8.0.230.0070.00016.93
8.0.220.0030.00316.91
8.0.210.0000.00717.02
8.0.200.0000.00616.93
8.0.190.0070.00016.97
8.0.180.0050.00217.01
8.0.170.0080.00317.06
8.0.160.0050.00317.02
8.0.150.0080.00016.84
8.0.140.0080.00316.84
8.0.130.0000.00613.37
8.0.120.0030.00516.89
8.0.110.0080.00017.05
8.0.100.0070.00016.85
8.0.90.0000.00716.84
8.0.80.0080.00616.91
8.0.70.0040.00416.93
8.0.60.0080.00016.87
8.0.50.0040.00417.01
8.0.30.0030.01417.01
8.0.20.0140.00517.35
8.0.10.0000.00817.05
8.0.00.0060.01416.95
7.4.330.0050.00016.79
7.4.320.0030.00616.76
7.4.300.0030.00316.74
7.4.290.0030.00316.80
7.4.280.0000.00716.71
7.4.270.0050.00316.66
7.4.260.0000.00716.73
7.4.250.0000.00716.67
7.4.240.0040.00416.65
7.4.230.0030.00316.78
7.4.220.0020.00516.63
7.4.210.0080.01116.70
7.4.200.0040.00416.86
7.4.130.0060.01416.80
7.4.120.0090.00916.72
7.4.110.0030.01316.70
7.4.100.0110.00916.77
7.4.90.0040.01516.67
7.4.80.0070.01519.39
7.4.70.0030.01316.57
7.4.60.0190.00316.74
7.4.50.0070.00716.63
7.4.40.0150.00616.75
7.4.00.0060.00615.23
7.3.330.0040.00416.27
7.3.320.0050.00013.26
7.3.310.0000.00716.30
7.3.300.0000.00716.37
7.3.290.0120.00716.37
7.3.280.0060.00916.38
7.3.260.0090.00916.48
7.3.240.0110.00516.48
7.3.230.0090.01216.64
7.3.210.0100.00716.77
7.3.200.0050.01116.73
7.3.190.0110.00516.39
7.3.180.0050.01416.39
7.3.170.0110.00716.86
7.3.160.0080.00816.54
7.3.80.0130.00614.82
7.3.70.0090.00915.02
7.3.60.0030.01414.66
7.3.50.0080.01215.00
7.3.40.0130.00314.98
7.3.30.0120.00815.02
7.3.20.0150.00315.00
7.3.10.0110.01115.00
7.3.00.0030.01715.05
7.2.330.0110.00616.59
7.2.320.0070.01016.70
7.2.310.0090.00816.48
7.2.300.0100.00616.65
7.2.290.0120.00616.66
7.2.210.0240.00014.76
7.2.200.0000.02014.90
7.2.190.0120.00815.00
7.2.180.0030.01315.23
7.2.170.0030.01414.73
7.2.160.0110.00714.81
7.2.150.0150.00915.30
7.2.140.0060.01715.12
7.2.130.0160.00615.13
7.2.120.0120.01515.08
7.2.110.0210.00615.14
7.2.100.0070.01415.26
7.2.90.0090.01315.25
7.2.80.0170.00315.13
7.2.70.0080.01615.09
7.2.60.0160.00615.34
7.2.50.0170.00415.25
7.2.40.0150.00814.79
7.2.30.0110.01115.14
7.2.20.0130.01315.16
7.2.10.0160.00615.00
7.2.00.0280.00915.27
7.1.310.0150.00914.13
7.1.300.0550.01014.16
7.1.290.0160.00614.07
7.1.280.0130.01014.03
7.1.270.0170.00314.05
7.1.260.0140.00813.81
7.1.250.0110.01113.99

preferences:
47.42 ms | 401 KiB | 5 Q