3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target = 'https://example.com/[photo-s]/photo.jpg'; $result = preg_replace('/\[photo-[a-z]+]/', 'somethingElse', $target); var_dump($result);

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.140.0100.01117.64
8.4.130.0100.00318.00
8.4.120.0100.01023.75
8.4.110.0130.00718.76
8.4.100.0110.01017.77
8.4.90.0130.00817.59
8.4.80.0080.01018.63
8.4.70.0130.01117.98
8.4.60.0030.00819.04
8.4.50.0120.00518.42
8.4.40.0090.01217.76
8.4.30.0090.00920.60
8.4.20.0090.00318.13
8.4.10.0040.00426.06
8.3.270.0090.01016.60
8.3.260.0130.00716.66
8.3.250.0040.00518.90
8.3.240.0090.00716.84
8.3.230.0090.01116.54
8.3.220.0060.00418.73
8.3.210.0040.00316.57
8.3.200.0080.00116.47
8.3.190.0110.00817.07
8.3.180.0120.00816.53
8.3.170.0130.00317.07
8.3.160.0030.01218.45
8.3.150.0040.00416.49
8.3.140.0030.00716.89
8.3.130.0150.00018.38
8.3.120.0140.00418.98
8.3.110.0140.00416.60
8.3.100.0030.00616.46
8.3.90.0030.00626.77
8.3.80.0130.00016.63
8.3.70.0090.01216.71
8.3.60.0120.00318.19
8.3.50.0110.00923.72
8.3.40.0120.00618.80
8.3.30.0110.00318.67
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0130.00620.45
8.2.280.0090.00718.36
8.2.270.0120.00616.97
8.2.260.0120.00616.64
8.2.250.0040.00418.26
8.2.240.0060.01218.26
8.2.230.0170.00320.94
8.2.220.0050.00524.06
8.2.210.0040.01126.77
8.2.200.0040.00716.88
8.2.190.0110.00716.63
8.2.180.0040.01125.92
8.2.170.0120.00319.09
8.2.160.0070.00722.96
8.2.150.0020.00525.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00426.35
8.2.110.0070.00319.27
8.2.100.0070.00419.45
8.2.90.0060.00317.88
8.2.80.0000.00818.92
8.2.70.0030.00617.38
8.2.60.0000.00817.90
8.2.50.0040.00418.05
8.2.40.0020.00517.91
8.2.30.0040.00417.93
8.2.20.0070.00017.89
8.2.10.0040.00419.37
8.2.00.0000.01019.28
8.1.330.0070.01218.11
8.1.320.0120.00716.38
8.1.310.0120.00618.36
8.1.300.0070.01118.57
8.1.290.0100.00030.84
8.1.280.0120.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.29
8.1.230.0000.01122.24
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0080.00017.23
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0080.00018.83
8.1.160.0000.00818.84
8.1.150.0040.00418.76
8.1.140.0040.00418.89
8.1.130.0040.00417.59
8.1.120.0050.00217.52
8.1.110.0050.00217.59
8.1.100.0030.00517.38
8.1.90.0000.00717.48
8.1.80.0040.00417.42
8.1.70.0030.00317.49
8.1.60.0040.00417.63
8.1.50.0040.00417.64
8.1.40.0080.00017.54
8.1.30.0040.00417.70
8.1.20.0040.00417.56
8.1.10.0000.00817.57
8.1.00.0030.00517.61
8.0.300.0090.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.33
8.0.270.0000.00717.96
8.0.260.0000.00616.77
8.0.250.0000.00816.95
8.0.240.0000.00716.92
8.0.230.0050.00217.07
8.0.220.0030.00316.87
8.0.210.0050.00316.97
8.0.200.0000.00717.05
8.0.190.0040.00416.90
8.0.180.0050.00216.99
8.0.170.0090.00016.95
8.0.160.0040.00417.04
8.0.150.0040.00416.95
8.0.140.0000.00816.86
8.0.130.0000.00513.36
8.0.120.0000.00716.98
8.0.110.0040.00417.05
8.0.100.0070.00016.80
8.0.90.0070.00016.94
8.0.80.0080.00816.94
8.0.70.0000.00717.01
8.0.60.0000.00716.84
8.0.50.0000.00716.77
8.0.30.0140.00317.28
8.0.20.0150.00617.14
8.0.10.0060.01417.27
8.0.00.0100.01217.21
7.4.330.0050.00015.55
7.4.320.0000.00716.64
7.4.300.0040.00416.73
7.4.290.0080.00016.63
7.4.280.0040.00416.64
7.4.270.0030.00316.65
7.4.260.0090.00013.47
7.4.250.0000.00716.53
7.4.240.0070.00016.67
7.4.230.0030.00316.48
7.4.220.0000.00716.65
7.4.210.0100.00716.61
7.4.200.0000.00716.74
7.4.140.0030.01616.57
7.4.130.0160.00316.38
7.4.120.0110.00816.60
7.4.110.0080.01216.66
7.4.100.0070.01216.48
7.4.90.0100.01316.71
7.4.80.0100.01416.44
7.4.70.0090.00816.30
7.4.60.0130.00616.55
7.4.50.0120.01216.61
7.4.40.0180.00716.33
7.4.30.0090.00916.56
7.4.20.0150.00916.40
7.4.10.0140.01116.41
7.4.00.0130.01016.53
7.3.330.0080.00016.11
7.3.320.0030.00313.13
7.3.310.0000.00716.44
7.3.300.0000.00616.27
7.3.290.0090.00716.33
7.3.260.0130.01016.40
7.3.250.0160.00316.30
7.3.240.0110.00916.18
7.3.230.0030.01416.50
7.3.220.0100.01316.45
7.3.210.0160.00716.13
7.3.200.0200.00316.55
7.3.190.0110.00716.41
7.3.180.0070.01016.32
7.3.170.0100.01416.31
7.3.160.0130.01316.31
7.3.150.0210.00416.45
7.3.140.0110.01416.31
7.3.130.0140.01216.62
7.3.120.0070.01816.44
7.3.110.0170.00916.18
7.3.100.0110.01416.51
7.3.90.0220.00416.47
7.3.80.0170.00916.34
7.3.70.0090.01216.32
7.3.60.0090.00816.25
7.3.50.0130.01016.26
7.3.40.0100.00716.23
7.3.30.0090.00816.22
7.3.20.0120.00816.32
7.3.10.0070.01016.32
7.3.00.0070.01016.31

preferences:
30.99 ms | 403 KiB | 5 Q