3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<div class="media_embed" height="qqq" width="www"> <a href="http://giphy.com/gifs/dancing">via GIPHY</a> <div class="media_embed" height="eee" width="rrr"> <a href="http://giphy.com/gifs/movie">via GIPHY</a>'; echo $html = preg_replace("/<a href=\"(.*)\">.*<\/a>/", "<figure><img src='$1' /></figure>", $html);

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.0130.00819.42
8.4.130.0130.00717.78
8.4.120.0090.01220.51
8.4.110.0120.00922.42
8.4.100.0110.01017.92
8.4.90.0130.00720.63
8.4.80.0110.00917.89
8.4.70.0120.00818.04
8.4.60.0130.00718.68
8.4.50.0090.00217.70
8.4.40.0130.00717.87
8.4.30.0150.00617.75
8.4.20.0100.01019.92
8.4.10.0130.00719.55
8.3.270.0140.00716.54
8.3.260.0110.00916.79
8.3.250.0060.00718.71
8.3.240.0140.00616.61
8.3.230.0080.01016.87
8.3.220.0100.00917.27
8.3.210.0090.00918.55
8.3.200.0060.00316.86
8.3.190.0070.01219.01
8.3.180.0130.00616.75
8.3.170.0130.00618.98
8.3.160.0040.00418.50
8.3.150.0060.01220.40
8.3.140.0080.00016.75
8.3.130.0040.01118.27
8.3.120.0040.00420.79
8.3.110.0030.00516.79
8.3.100.0060.00316.55
8.3.90.0050.00326.77
8.3.80.0060.00316.50
8.3.70.0110.00416.75
8.3.60.0070.01316.75
8.3.50.0260.00522.24
8.3.40.0140.00018.96
8.3.30.0170.00318.86
8.3.20.0080.00018.98
8.3.10.0050.00321.89
8.3.00.0000.00820.84
8.2.290.0120.00522.39
8.2.280.0100.00818.85
8.2.270.0120.00617.29
8.2.260.0150.00320.33
8.2.250.0050.00316.73
8.2.240.0000.00818.96
8.2.230.0000.00822.58
8.2.220.0040.00424.06
8.2.210.0120.00326.77
8.2.200.0060.00616.75
8.2.190.0110.00716.63
8.2.180.0130.00616.75
8.2.170.0170.00419.04
8.2.160.0050.00822.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00421.02
8.2.110.0040.00722.26
8.2.100.0060.00617.89
8.2.90.0030.00522.40
8.2.80.0030.00517.97
8.2.70.0040.00417.93
8.2.60.0080.00018.03
8.2.50.0000.00818.10
8.2.40.0040.00420.55
8.2.30.0030.00519.15
8.2.20.0000.00718.07
8.2.10.0060.00317.96
8.2.00.0040.00417.84
8.1.330.0110.00721.90
8.1.320.0080.00816.38
8.1.310.0070.01116.73
8.1.300.0050.00518.36
8.1.290.0060.00330.84
8.1.280.0000.01425.92
8.1.270.0090.00021.98
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00320.70
8.1.230.0090.00320.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.36
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0040.00418.70
8.1.160.0000.00718.76
8.1.150.0040.00420.30
8.1.140.0000.00719.60
8.1.130.0070.00017.73
8.1.120.0000.00717.59
8.1.110.0000.00717.43
8.1.100.0040.00417.52
8.1.90.0000.00917.57
8.1.80.0040.00417.54
8.1.70.0000.00717.60
8.1.60.0040.00417.57
8.1.50.0040.00417.64
8.1.40.0080.00017.61
8.1.30.0030.00617.76
8.1.20.0030.00617.76
8.1.10.0000.00817.55
8.1.00.0030.00617.59
8.0.300.0000.00819.95
8.0.290.0040.00416.75
8.0.280.0040.00418.47
8.0.270.0000.00717.21
8.0.260.0030.00317.19
8.0.250.0040.00416.98
8.0.240.0060.00017.08
8.0.230.0050.00216.94
8.0.220.0000.00716.98
8.0.210.0000.00716.88
8.0.200.0030.00316.93
8.0.190.0040.00417.05
8.0.180.0000.00816.89
8.0.170.0000.00817.02
8.0.160.0040.00416.89
8.0.150.0040.00416.93
8.0.140.0040.00417.00
8.0.130.0000.00513.36
8.0.120.0000.00916.97
8.0.110.0000.00816.83
8.0.100.0000.00816.79
8.0.90.0050.00316.97
8.0.80.0120.00916.93
8.0.70.0040.00416.85
8.0.60.0050.00316.87
8.0.50.0000.00716.93
8.0.30.0140.00417.28
8.0.20.0090.00917.45
8.0.10.0000.00717.09
8.0.00.0070.01016.92
7.4.330.0000.00515.55
7.4.320.0000.00716.69
7.4.300.0030.00316.64
7.4.290.0000.00716.70
7.4.280.0070.00016.73
7.4.270.0070.00016.75
7.4.260.0040.00316.75
7.4.250.0040.00416.70
7.4.240.0040.00416.74
7.4.230.0040.00416.82
7.4.220.0140.00916.62
7.4.210.0030.01216.74
7.4.200.0040.00416.87
7.4.160.0110.00516.63
7.4.150.0040.01417.40
7.4.140.0070.01217.86
7.4.130.0100.00916.66
7.4.120.0100.00716.57
7.4.110.0070.01116.58
7.4.100.0140.00716.60
7.4.90.0070.01116.59
7.4.80.0120.00419.39
7.4.70.0060.00916.75
7.4.60.0100.00716.66
7.4.50.0070.00716.62
7.4.40.0070.01016.71
7.4.30.0080.01116.65
7.4.00.0030.01415.23
7.3.330.0000.00513.14
7.3.320.0000.00613.09
7.3.310.0000.00716.35
7.3.300.0030.00316.28
7.3.290.0030.00316.15
7.3.280.0070.01116.26
7.3.270.0100.00717.40
7.3.260.0090.00816.39
7.3.250.0090.00716.47
7.3.240.0140.00816.62
7.3.230.0130.01016.39
7.3.210.0070.01016.66
7.3.200.0080.01216.42
7.3.190.0090.00616.41
7.3.180.0070.01016.49
7.3.170.0060.01116.29
7.3.160.0130.00316.54
7.3.00.0060.00616.42
7.2.330.0070.01116.62
7.2.320.0100.00716.86
7.2.310.0100.00716.88
7.2.300.0060.01216.60
7.2.290.0120.00916.76
7.2.130.0140.00016.86
7.2.120.0030.01016.73
7.2.110.0030.01216.79
7.2.100.0100.00317.18
7.2.90.0070.00416.67
7.2.80.0100.00716.90
7.2.70.0050.00816.98
7.2.60.0060.00816.78
7.2.50.0030.01417.00
7.2.40.0040.00816.65
7.2.30.0070.00716.98
7.2.20.0070.00716.80
7.2.10.0000.01516.94
7.2.00.0070.00518.27
7.1.250.0120.00015.89
7.1.240.0040.01515.96
7.1.230.0040.00415.93
7.1.220.0070.00715.85
7.1.210.0110.00515.62
7.1.200.0030.00815.95
7.1.190.0030.00915.63
7.1.180.0090.00315.99
7.1.170.0030.00716.00
7.1.160.0030.00615.76
7.1.150.0060.00815.39
7.1.140.0070.00715.91
7.1.130.0030.00915.59
7.1.120.0080.00815.89
7.1.110.0100.00315.91
7.1.100.0070.01015.98
7.1.90.0030.00915.95
7.1.80.0030.01016.00
7.1.70.0030.00516.44
7.1.60.0070.00416.53
7.1.50.0090.00315.87
7.1.40.0060.00615.83
7.1.30.0000.01515.76
7.1.20.0100.00715.77
7.1.10.0000.01315.59
7.1.00.0070.04119.15
7.0.330.0060.00915.30
7.0.320.0100.00015.57
7.0.310.0000.01515.56
7.0.300.0030.00915.58
7.0.290.0030.00715.20
7.0.280.0030.00715.24
7.0.270.0060.00615.53
7.0.260.0040.00815.41
7.0.250.0090.00315.46
7.0.240.0000.01215.63
7.0.230.0100.00015.71
7.0.220.0090.00615.57
7.0.210.0130.00315.61
7.0.200.0070.00416.07
7.0.190.0090.00315.44
7.0.180.0050.00515.43
7.0.170.0030.00915.53
7.0.160.0060.00315.67
7.0.150.0040.00415.31
7.0.140.0040.00415.22
7.0.130.0170.02818.77
7.0.120.0070.03518.78
7.0.110.0110.02818.83
7.0.100.0100.03418.80
7.0.90.0040.03818.78
7.0.80.0080.03218.81
7.0.70.0100.03818.75
7.0.60.0120.02918.70
7.0.50.0050.03818.73
7.0.40.0030.03517.80
7.0.30.0120.04717.81
7.0.20.0080.03217.77
7.0.10.0110.02517.84
7.0.00.0060.03117.63
5.6.380.0060.00914.57
5.6.370.0060.00314.56
5.6.360.0040.01214.64
5.6.350.0060.00614.21
5.6.340.0060.00614.69
5.6.330.0030.00914.18
5.6.320.0040.00414.28
5.6.310.0080.00514.17
5.6.300.0030.01014.38
5.6.290.0030.00614.25
5.6.280.0090.03917.58
5.6.270.0050.03417.64
5.6.260.0070.03517.66
5.6.250.0170.02217.54
5.6.240.0050.03717.52
5.6.230.0090.04217.52
5.6.220.0160.03517.62
5.6.210.0110.03317.64
5.6.200.0080.04017.79
5.6.190.0130.03517.66
5.6.180.0060.03317.61
5.6.170.0110.03517.63
5.6.160.0060.03917.63
5.6.150.0120.02817.75
5.6.140.0050.03517.54
5.6.130.0120.04317.68
5.6.120.0080.04017.50
5.6.110.0120.03517.71
5.6.100.0100.03517.46
5.6.90.0130.03317.63
5.6.80.0110.03217.28
5.6.70.0070.03617.06
5.6.60.0100.03317.32
5.6.50.0130.03017.09
5.6.40.0050.04217.21
5.6.30.0080.03917.38
5.6.20.0090.03417.24
5.6.10.0030.03617.26
5.6.00.0070.04417.17

preferences:
127.4 ms | 403 KiB | 5 Q