3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ""; $word = "mysql_query('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.40.0070.00718.83
8.3.30.0100.00318.90
8.3.20.0040.00420.29
8.3.10.0080.00023.66
8.3.00.0030.00519.38
8.2.170.0120.00322.96
8.2.160.0110.00320.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00621.16
8.2.110.0100.00020.16
8.2.100.0130.00018.02
8.2.90.0030.00519.13
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0060.00318.07
8.2.40.0050.00318.09
8.2.30.0080.00318.10
8.2.20.0040.00417.66
8.2.10.0040.00418.02
8.2.00.0000.00717.71
8.1.270.0090.00322.00
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0000.00823.66
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0000.00818.59
8.1.160.0030.00622.00
8.1.150.0040.00418.92
8.1.140.0000.00717.48
8.1.130.0030.00317.75
8.1.120.0000.00817.49
8.1.110.0060.00317.35
8.1.100.0000.00817.38
8.1.90.0040.00417.46
8.1.80.0040.00417.34
8.1.70.0030.00317.32
8.1.60.0040.00417.49
8.1.50.0050.00317.53
8.1.40.0080.00017.48
8.1.30.0000.00817.55
8.1.20.0020.00517.47
8.1.10.0000.00817.53
8.1.00.0040.00417.43
8.0.300.0000.00918.77
8.0.290.0070.00016.88
8.0.280.0070.00018.34
8.0.270.0040.00417.24
8.0.260.0030.00317.25
8.0.250.0040.00417.01
8.0.240.0040.00417.03
8.0.230.0000.00716.98
8.0.220.0030.00316.96
8.0.210.0030.00316.87
8.0.200.0000.00617.04
8.0.190.0040.00417.04
8.0.180.0000.00716.85
8.0.170.0000.00816.96
8.0.160.0050.00217.06
8.0.150.0030.00316.87
8.0.140.0030.00516.86
8.0.130.0050.00013.33
8.0.120.0000.00716.88
8.0.110.0040.00416.83
8.0.100.0000.00817.00
8.0.90.0000.00716.82
8.0.80.0030.01616.93
8.0.70.0030.00516.95
8.0.60.0000.00716.88
8.0.50.0000.00716.74
8.0.30.0060.01317.04
8.0.20.0140.00517.40
8.0.10.0040.00417.04
8.0.00.0130.00516.76
7.4.330.0000.00715.00
7.4.320.0060.00016.40
7.4.300.0030.00316.50
7.4.290.0000.00716.45
7.4.280.0040.00416.34
7.4.270.0070.00316.44
7.4.260.0040.00416.44
7.4.250.0080.00016.48
7.4.240.0000.00716.42
7.4.230.0030.00316.37
7.4.220.0000.01816.55
7.4.210.0070.00716.38
7.4.200.0000.00716.33
7.4.160.0040.01116.51
7.4.150.0130.00617.40
7.4.140.0080.01017.86
7.4.130.0080.01016.61
7.4.120.0100.00816.63
7.4.110.0160.00316.46
7.4.100.0030.01716.42
7.4.90.0100.00716.51
7.4.80.0060.01519.39
7.4.70.0150.00716.54
7.4.60.0080.00816.46
7.4.50.0040.00416.58
7.4.40.0040.01816.59
7.4.30.0070.00716.50
7.4.00.0100.00614.83
7.3.330.0000.00613.15
7.3.320.0000.00513.23
7.3.310.0050.00216.30
7.3.300.0040.00416.35
7.3.290.0070.01316.27
7.3.280.0080.00916.33
7.3.270.0070.01017.40
7.3.260.0090.00916.41
7.3.250.0050.01116.32
7.3.240.0110.00616.39
7.3.230.0040.01216.48
7.3.210.0090.01316.53
7.3.200.0090.00919.39
7.3.190.0060.01316.42
7.3.180.0030.01516.17
7.3.170.0070.01416.52
7.3.160.0110.00916.21
7.2.330.0110.00716.41
7.2.320.0070.01016.71
7.2.310.0090.00816.51
7.2.300.0080.00816.70
7.2.290.0120.00916.64
7.2.00.0030.01019.28
7.1.100.0040.01417.87
7.1.70.0080.00016.85
7.1.60.0000.01017.09
7.1.50.0060.00617.02
7.1.40.0050.00516.75
7.1.30.0030.00916.50
7.1.20.0060.00616.74
7.1.10.0140.00316.54
7.1.00.0000.00816.53
7.0.200.0090.00016.73
7.0.190.0040.00416.41
7.0.180.0000.01516.33
7.0.170.0040.00816.26
7.0.160.0040.00416.39
7.0.150.0030.00716.26
7.0.140.0000.00916.40
7.0.130.0000.00816.52
7.0.120.0070.00416.67
7.0.110.0050.00316.32
7.0.100.0000.01016.37
7.0.90.0000.01116.27
7.0.80.0040.00416.30
7.0.70.0030.00616.26
7.0.60.0040.00416.29
7.0.50.0070.00316.26
7.0.40.0040.00416.26
7.0.30.0000.00816.26
7.0.20.0030.00516.26
7.0.10.0000.00916.26
7.0.00.0040.00416.26
5.6.300.0100.04120.79
5.6.290.0060.03921.00
5.6.280.0030.04820.77
5.6.270.0030.04620.89
5.6.260.0030.05320.98
5.6.250.0000.04420.77
5.6.240.0100.03820.92
5.6.230.0030.05121.02
5.6.220.0100.03520.80
5.6.210.0000.04421.13
5.6.200.0070.03721.00
5.6.190.0030.04220.75
5.6.180.0030.04321.02
5.6.170.0000.04320.85
5.6.160.0100.04221.04
5.6.150.0140.04221.00
5.6.140.0030.04220.91
5.6.130.0000.04820.78
5.6.120.0000.05220.79
5.6.110.0300.03620.90
5.6.100.0070.03620.79
5.6.90.0030.04020.79
5.6.80.0030.05220.32
5.6.70.0060.03820.15
5.6.60.0030.03920.31
5.6.50.0060.03520.35
5.6.40.0000.04120.37
5.6.30.0030.03820.13
5.6.20.0030.04320.36
5.6.10.0070.05720.08
5.6.00.0070.03920.28
5.5.380.0030.04517.48
5.5.370.0030.04217.48
5.5.360.0000.04317.47
5.5.350.0000.04217.54
5.5.340.0070.07517.95
5.5.330.0030.04317.95
5.5.320.0030.06118.04
5.5.310.0070.03618.06
5.5.300.0000.04717.92
5.5.290.0000.04518.04
5.5.280.0000.04617.99
5.5.270.0030.04718.00
5.5.260.0060.04518.11
5.5.250.0000.04217.84
5.5.240.0030.03817.12
5.5.230.0030.04717.40
5.5.220.0060.03517.41
5.5.210.0000.04417.40
5.5.200.0000.04617.43
5.5.190.0100.03517.46
5.5.180.0000.04017.21
5.5.160.0070.03217.32
5.5.150.0030.04017.34
5.5.140.0030.04117.37
5.5.130.0060.03917.37
5.5.120.0070.03717.36
5.5.110.0230.03917.04
5.5.100.0000.04117.09
5.5.90.0040.03916.97
5.5.80.0000.03817.26
5.5.70.0060.03517.27
5.5.60.0030.03617.16
5.5.50.0070.03317.20
5.5.40.0030.04317.35
5.5.30.0000.04517.27
5.5.20.0040.03916.98
5.5.10.0060.04117.26
5.5.00.0030.03717.26
5.4.450.0030.04119.46
5.4.440.0000.05119.21
5.4.430.0030.04119.39
5.4.420.0070.04019.46
5.4.410.0140.03119.24
5.4.400.0030.03819.06
5.4.390.0030.05219.07
5.4.380.0030.04819.07
5.4.370.0070.03618.97
5.4.360.0140.04119.05
5.4.350.0000.04819.16
5.4.340.0030.03718.82
5.4.320.0070.03718.97
5.4.310.0030.04719.14
5.4.300.0030.04019.04
5.4.290.0040.03519.09
5.4.280.0030.03819.08
5.4.270.0000.04719.16
5.4.260.0040.03619.05
5.4.250.0060.03719.05
5.4.240.0030.03919.04
5.4.230.0030.04019.05
5.4.220.0000.04419.16
5.4.210.0000.04219.01
5.4.200.0000.04618.96
5.4.190.0070.03518.84
5.4.180.0030.03619.04
5.4.170.0000.03919.04
5.4.160.0030.04219.05
5.4.150.0030.03919.14
5.4.140.0000.04016.46
5.4.130.0030.04716.61
5.4.120.0030.04216.53
5.4.110.0170.04216.57
5.4.100.0130.03616.57
5.4.90.0030.03316.50
5.4.80.0000.03816.68
5.4.70.0310.04816.56
5.4.60.0260.03916.48
5.4.50.0000.04216.57
5.4.40.0030.03316.63
5.4.30.0030.03716.32
5.4.20.0070.03316.55
5.4.10.0000.07116.41
5.4.00.0100.02616.26
5.3.290.0000.03916.26
5.3.280.0000.04116.26
5.3.270.0030.03616.26
5.3.260.0000.04216.26
5.3.250.0000.04116.26
5.3.240.0030.03516.26
5.3.230.0090.03116.26
5.3.220.0030.03916.26
5.3.210.0030.03716.26
5.3.200.0000.04116.26
5.3.190.0000.04516.26
5.3.180.0060.03816.26
5.3.170.0000.04616.26
5.3.160.0070.03616.26
5.3.150.0000.04016.26
5.3.140.0030.04116.26
5.3.130.0070.06516.26
5.3.120.0030.03616.26
5.3.110.0070.03316.26
5.3.100.0030.03616.26
5.3.90.0000.03916.26
5.3.80.0030.06116.26
5.3.70.0030.08216.26
5.3.60.0060.03516.26
5.3.50.0070.03016.26
5.3.40.0060.03216.26
5.3.30.0070.03316.26
5.3.20.0000.03816.26
5.3.10.0000.06116.26
5.3.00.0000.03716.26
5.2.170.0000.03616.26
5.2.160.0000.05116.26
5.2.150.0000.03816.26
5.2.140.0030.02816.26
5.2.130.0070.05716.26
5.2.120.0000.06616.26
5.2.110.0030.02716.26
5.2.100.0000.03216.26
5.2.90.0030.03216.26
5.2.80.0000.03516.26
5.2.70.0000.03116.26
5.2.60.0030.04316.26
5.2.50.0100.02116.26
5.2.40.0040.02816.26
5.2.30.0060.02516.26
5.2.20.0000.03016.26
5.2.10.0030.03116.26
5.2.00.0060.02816.26
5.1.60.0030.02516.26
5.1.50.0030.02616.26
5.1.40.0070.02616.26
5.1.30.0030.02616.26
5.1.20.0000.02816.26
5.1.10.0180.01816.26
5.1.00.0060.02516.26
5.0.50.0040.01916.26
5.0.40.0030.02016.26
5.0.30.0000.03316.26
5.0.20.0030.03716.26
5.0.10.0040.01816.26
5.0.00.0100.05916.26
4.4.90.0030.03716.26
4.4.80.0030.01916.26
4.4.70.0000.01716.26
4.4.60.0000.04016.26
4.4.50.0070.03316.26
4.4.40.0000.02816.26
4.4.30.0030.01416.26
4.4.20.0000.01916.26
4.4.10.0000.02516.26
4.4.00.0000.02816.26
4.3.110.0060.01316.26
4.3.100.0000.01716.26
4.3.90.0000.02016.26
4.3.80.0240.02416.26
4.3.70.0000.02216.26
4.3.60.0060.01316.26
4.3.50.0000.02416.26
4.3.40.0030.02216.26
4.3.30.0030.01716.26
4.3.20.0000.02116.26
4.3.10.0000.02416.26
4.3.00.0000.01816.26

preferences:
58.18 ms | 400 KiB | 5 Q