3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = "die('Lalala'); 1||1/e\0"; // Slightly contrived example, but let's pretend we're // case-normalizing a user-provided word, and forgot to // preg_quote $text = preg_replace('/'.$word.'/i', $word, $text);

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.00618.31
8.3.50.0070.01422.93
8.3.40.0140.00018.67
8.3.30.0100.00318.92
8.3.20.0000.00720.27
8.3.10.0040.00423.59
8.3.00.0030.00519.26
8.2.180.0160.00318.55
8.2.170.0070.00722.96
8.2.160.0000.01520.41
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0080.00020.96
8.2.110.0040.00420.51
8.2.100.0030.00918.03
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0070.00017.77
8.2.50.0030.00618.07
8.2.40.0030.00618.22
8.2.30.0030.00718.04
8.2.20.0000.00717.64
8.2.10.0040.00418.02
8.2.00.0050.00317.70
8.1.280.0120.00925.92
8.1.270.0090.00023.97
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.92
8.1.230.0070.00319.23
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00421.91
8.1.150.0040.00418.79
8.1.140.0000.00717.42
8.1.130.0080.00017.82
8.1.120.0040.00417.38
8.1.110.0080.00017.48
8.1.100.0040.00417.37
8.1.90.0000.00717.43
8.1.80.0030.00317.47
8.1.70.0070.00017.40
8.1.60.0050.00317.59
8.1.50.0030.00617.42
8.1.40.0070.00017.44
8.1.30.0030.00517.55
8.1.20.0080.00017.63
8.1.10.0000.00817.39
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.43
8.0.270.0030.00317.19
8.0.260.0030.00317.24
8.0.250.0030.00317.05
8.0.240.0030.00516.89
8.0.230.0040.00416.93
8.0.220.0070.00017.00
8.0.210.0040.00416.89
8.0.200.0030.00317.02
8.0.190.0040.00416.96
8.0.180.0040.00417.02
8.0.170.0040.00416.95
8.0.160.0040.00416.79
8.0.150.0040.00416.92
8.0.140.0000.00716.84
8.0.130.0000.00513.43
8.0.120.0030.00516.89
8.0.110.0000.00716.84
8.0.100.0040.00416.88
8.0.90.0080.00017.00
8.0.80.0090.00916.90
8.0.70.0000.00716.80
8.0.60.0000.00716.84
8.0.50.0000.00816.86
8.0.30.0100.00917.11
8.0.20.0130.00617.40
8.0.10.0040.00417.02
8.0.00.0060.01216.75
7.4.330.0030.00315.00
7.4.320.0000.00716.52
7.4.300.0030.00316.48
7.4.290.0070.00016.43
7.4.280.0000.00716.56
7.4.270.0030.00616.36
7.4.260.0080.00016.37
7.4.250.0000.00716.32
7.4.240.0040.00416.53
7.4.230.0030.00316.53
7.4.220.0150.00316.29
7.4.210.0090.00616.62
7.4.200.0030.00316.63
7.4.160.0050.01116.42
7.4.150.0180.00617.40
7.4.140.0120.00517.86
7.4.130.0080.00816.44
7.4.120.0060.01016.46
7.4.110.0120.00616.41
7.4.100.0110.01116.37
7.4.90.0070.01016.24
7.4.80.0080.01219.39
7.4.70.0030.01916.57
7.4.60.0150.00316.53
7.4.50.0030.00616.48
7.4.40.0080.00816.43
7.4.30.0110.00716.43
7.4.00.0020.01714.90
7.3.330.0020.00313.23
7.3.320.0030.00313.04
7.3.310.0000.00716.25
7.3.300.0060.00016.27
7.3.290.0100.01016.37
7.3.280.0070.00916.30
7.3.270.0170.00017.40
7.3.260.0090.00916.52
7.3.250.0150.00516.50
7.3.240.0080.00816.45
7.3.230.0100.00716.39
7.3.210.0090.01016.59
7.3.200.0030.01219.39
7.3.190.0110.00516.34
7.3.180.0000.01716.40
7.3.170.0100.00716.32
7.3.160.0110.00616.35
7.3.120.0040.01414.84
7.3.110.0040.01214.81
7.3.100.0060.00914.81
7.3.90.0000.01115.07
7.3.80.0000.01015.11
7.3.70.0060.00614.68
7.3.60.0040.01214.70
7.3.50.0040.00714.88
7.3.40.0000.01214.86
7.3.30.0110.00414.70
7.3.20.0030.00616.45
7.3.10.0090.00016.73
7.3.00.0000.00916.45
7.2.330.0170.00716.53
7.2.320.0050.01116.32
7.2.310.0100.00716.74
7.2.300.0110.01116.23
7.2.290.0180.00416.59
7.2.250.0040.01115.23
7.2.240.0040.01514.99
7.2.230.0040.00814.64
7.2.220.0030.01015.30
7.2.210.0000.00915.16
7.2.200.0030.01015.08
7.2.190.0080.00614.71
7.2.180.0100.00315.10
7.2.170.0060.00714.91
7.2.60.0120.00016.75
7.2.00.0000.01119.52
7.1.330.0100.00315.76
7.1.320.0030.01015.56
7.1.310.0080.00615.65
7.1.300.0030.00715.60
7.1.290.0040.00715.58
7.1.280.0000.01215.57
7.1.270.0040.00815.68
7.1.260.0030.01015.84
7.1.200.0070.00415.77
7.1.100.0040.00718.07
7.1.70.0000.00717.25
7.1.60.0110.00619.46
7.1.50.0110.01116.79
7.1.00.0100.07022.51
7.0.200.0000.01016.53
7.0.140.0000.07322.09
7.0.60.0030.04720.03
7.0.50.0130.05317.84
7.0.40.0030.06020.09
7.0.30.0300.07020.38
7.0.20.0430.06720.33
7.0.10.0200.07320.16
7.0.00.0100.04020.33
5.6.280.0030.07320.98
5.6.210.0070.06320.71
5.6.200.0030.07318.16
5.6.190.0130.03320.36
5.6.180.3570.04020.56
5.6.170.0230.08320.40
5.6.160.0030.09020.63
5.6.150.0100.06318.11
5.6.140.0070.05318.11
5.6.130.0100.07718.16
5.6.120.0000.04320.72
5.6.110.0070.04021.00
5.6.100.0170.07721.11
5.6.90.0230.06720.99
5.6.80.0070.03720.38
5.5.350.0370.06720.29
5.5.340.0100.07017.87
5.5.330.0000.04320.38
5.5.320.0300.04720.19
5.5.310.0270.07320.30
5.5.300.0070.05017.95
5.5.290.0130.03317.89
5.5.280.0130.08020.64
5.5.270.0030.08320.62
5.5.260.0100.05720.72
5.5.250.0200.03320.61
5.5.240.0170.08020.25
5.4.450.0170.04719.42
5.4.440.0170.06719.57
5.4.430.0270.05319.60
5.4.420.0270.07319.48
5.4.410.0200.06019.41
5.4.400.0230.03319.22
5.4.390.0300.07319.25
5.4.380.0170.04318.80
5.4.370.0270.07718.80
5.4.360.0200.06019.09
5.4.350.0230.04019.09
5.4.340.0200.05319.25
5.4.320.0200.05319.09
5.4.310.0200.06319.16
5.4.300.0230.05018.91
5.4.290.0130.05019.09
5.4.280.0400.04319.13
5.4.270.0230.05319.24
5.4.260.0200.06319.24
5.4.250.0300.04319.09
5.4.240.0230.06718.92
5.4.230.0270.04318.87
5.4.220.0300.06719.13
5.4.210.0270.06719.04
5.4.200.0370.04718.80
5.4.190.0330.06719.20
5.4.180.0200.06719.07
5.4.170.0200.07019.14
5.4.160.0300.06019.22
5.4.150.0230.06019.22
5.4.140.0300.06316.44
5.4.130.0230.04016.28
5.4.120.0230.05716.43
5.4.110.0200.05016.41
5.4.100.0330.03016.43
5.4.90.0170.07016.06
5.4.80.0230.04316.18
5.4.70.0170.07316.42
5.4.60.0300.06316.37
5.4.50.0300.06016.36
5.4.40.0170.06716.20
5.4.30.0200.06716.36
5.4.20.0230.04016.20
5.4.10.0200.06716.47
5.4.00.0230.04015.78
5.3.290.0230.04314.65
5.3.280.0230.07014.47
5.3.270.0200.07314.46
5.3.260.0200.05014.45
5.3.250.0170.04014.44
5.3.240.0230.07314.56
5.3.230.0230.06714.63
5.3.220.0170.04714.55
5.3.210.0300.06014.52
5.3.200.0200.07314.43
5.3.190.0270.07014.52
5.3.180.0300.06714.66
5.3.170.0170.04014.55
5.3.160.0300.06314.61
5.3.150.0270.07014.42
5.3.140.0330.06014.41
5.3.130.0330.04014.50
5.3.120.0270.04314.53
5.3.110.0370.06314.38
5.3.100.0270.05313.95
5.3.90.0230.06014.07
5.3.80.0270.07013.98
5.3.70.0270.07014.00
5.3.60.0170.06013.85
5.3.50.0230.07013.97
5.3.40.0230.07713.97
5.3.30.0200.06013.82
5.3.20.0170.07713.54
5.3.10.0270.06313.61
5.3.00.0230.03313.59
5.2.170.0170.03012.18
5.2.160.0270.04312.18
5.2.150.0200.05712.18
5.2.140.0100.06712.18
5.2.130.0170.05712.18
5.2.120.0200.06012.18
5.2.110.0170.04712.18
5.2.100.0230.04312.18
5.2.90.0230.03012.18
5.2.80.0170.03712.18
5.2.70.0170.05712.18
5.2.60.0200.05712.18
5.2.50.0230.04312.18
5.2.40.0130.06012.18
5.2.30.0170.03712.18
5.2.20.0170.06012.18
5.2.10.0130.04712.18
5.2.00.0070.04712.18
5.1.60.0270.02712.18
5.1.50.0200.04012.18
5.1.40.0170.04712.18
5.1.30.0100.06012.18
5.1.20.0170.05012.18
5.1.10.0170.04012.18
5.1.00.0130.04712.18
5.0.50.0130.04012.18
5.0.40.0100.03312.18
5.0.30.0100.06312.18
5.0.20.0130.03712.18
5.0.10.0100.03312.18
5.0.00.0200.04012.18
4.4.90.0100.02012.18
4.4.80.0070.03712.18
4.4.70.0070.02012.18
4.4.60.0070.02712.18
4.4.50.0100.02312.18
4.4.40.0100.05312.18
4.4.30.0100.03712.18
4.4.20.0100.03312.18
4.4.10.0100.03712.18
4.4.00.0070.05712.18
4.3.110.0070.03012.18
4.3.100.0070.03312.18
4.3.90.0070.03312.18
4.3.80.0070.03712.18
4.3.70.0070.03312.18
4.3.60.0100.03012.18
4.3.50.0070.03012.18
4.3.40.0070.05012.18
4.3.30.0030.03312.18
4.3.20.0070.02012.18
4.3.10.0030.02012.18
4.3.00.0100.03012.18

preferences:
54.37 ms | 401 KiB | 5 Q