3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_GET['user_name'])&&!empty($_GET['user_name'])) { $user_name = $_GET['user_name']; $user_name_lc = strtolower($user_name); if ($user_name_lc=='alex') { echo 'You are the best, '. $user_name; } } ?> <form action="index.php" method="GET"> Name: <input type="text" name="user_name"><br><br> <input type="Submit" value="Submit"> </form>

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.0100.01016.50
8.3.50.0070.00921.95
8.3.40.0070.00718.76
8.3.30.0040.01119.05
8.3.20.0050.00320.22
8.3.10.0070.00023.48
8.3.00.0110.00019.51
8.2.180.0080.00818.29
8.2.170.0030.01022.96
8.2.160.0040.00920.43
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0040.00422.25
8.2.110.0030.00622.30
8.2.100.0070.00417.72
8.2.90.0080.00019.21
8.2.80.0030.00517.97
8.2.70.0000.01017.50
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0070.00017.95
8.2.20.0080.00017.68
8.2.10.0070.00017.57
8.2.00.0060.00317.60
8.1.280.0150.00025.92
8.1.270.0090.00023.96
8.1.260.0070.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.84
8.1.230.0040.00819.04
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0000.01318.55
8.1.160.0060.00321.90
8.1.150.0000.00718.55
8.1.140.0050.00317.31
8.1.130.0000.00717.82
8.1.120.0000.00717.38
8.1.110.0030.00417.48
8.1.100.0030.00617.34
8.1.90.0070.00017.36
8.1.80.0040.00417.30
8.1.70.0070.00017.27
8.1.60.0050.00317.52
8.1.50.0000.00817.49
8.1.40.0000.00817.45
8.1.30.0030.00517.45
8.1.20.0050.00317.61
8.1.10.0000.00717.46
8.1.00.0000.00817.47
8.0.300.0000.00718.77
8.0.290.0070.00017.15
8.0.280.0050.00318.31
8.0.270.0030.00317.21
8.0.260.0030.00316.77
8.0.250.0070.00016.87
8.0.240.0030.00316.91
8.0.230.0000.00616.83
8.0.220.0080.00016.75
8.0.210.0000.00716.75
8.0.200.0000.00616.79
8.0.190.0040.00416.89
8.0.180.0040.00416.75
8.0.170.0020.00516.88
8.0.160.0070.00016.83
8.0.150.0040.00416.77
8.0.140.0040.00416.79
8.0.130.0000.00713.28
8.0.120.0040.00416.81
8.0.110.0050.00316.84
8.0.100.0000.00816.82
8.0.90.0050.00316.68
8.0.80.0130.00316.84
8.0.70.0000.00816.74
8.0.60.0000.00716.71
8.0.50.0000.00716.84
8.0.30.0080.01416.98
8.0.20.0100.01017.40
8.0.10.0040.00416.93
8.0.00.0040.01316.92
7.4.330.0000.00515.08
7.4.320.0030.00316.53
7.4.300.0000.00616.57
7.4.290.0040.00416.36
7.4.280.0070.00016.52
7.4.270.0000.00616.41
7.4.260.0040.00416.33
7.4.250.0040.00416.52
7.4.240.0020.00516.45
7.4.230.0000.00716.53
7.4.220.0170.00016.41
7.4.210.0070.01116.43
7.4.200.0000.00716.35
7.4.190.0050.00316.59
7.4.160.0060.01616.55
7.4.150.0070.01017.40
7.4.140.0090.01217.86
7.4.130.0090.00816.46
7.4.120.0110.00616.47
7.4.110.0090.00816.50
7.4.100.0080.01116.51
7.4.90.0140.00316.38
7.4.80.0070.01019.39
7.4.70.0150.00316.39
7.4.60.0090.00916.38
7.4.50.0060.00016.41
7.4.40.0030.01422.77
7.4.30.0070.01116.27
7.4.00.0000.01614.72
7.3.330.0000.00613.05
7.3.320.0070.00013.00
7.3.310.0000.00616.06
7.3.300.0030.00316.18
7.3.290.0090.00616.26
7.3.280.0120.00816.21
7.3.270.0100.01017.40
7.3.260.0100.00716.25
7.3.250.0100.00716.38
7.3.240.0090.00816.23
7.3.230.0110.00616.40
7.3.210.0100.00716.16
7.3.200.0070.01119.39
7.3.190.0100.00716.45
7.3.180.0060.01016.31
7.3.170.0070.01316.27
7.3.160.0110.00516.22
7.3.120.0040.00714.62
7.3.10.0030.01316.56
7.3.00.0040.01116.63
7.2.330.0030.01416.65
7.2.320.0100.00716.41
7.2.310.0140.01216.56
7.2.300.0000.01716.75
7.2.290.0030.01316.53
7.2.130.0090.00616.64
7.2.120.0030.01017.01
7.2.110.0040.00716.77
7.2.100.0150.00316.86
7.2.90.0090.00616.95
7.2.80.0040.01117.00
7.2.70.0040.00816.77
7.2.60.0080.00816.80
7.2.50.0000.01016.76
7.2.40.0070.00316.80
7.2.30.0070.00716.71
7.2.20.0100.00316.59
7.2.10.0070.00716.58
7.2.00.0040.00816.85
7.1.250.0030.00915.57
7.1.70.0030.00716.82
7.1.60.0100.01319.31
7.1.50.0130.00916.91
7.1.00.0030.07722.37
7.0.200.0100.00316.41
7.0.140.0000.07722.09
7.0.110.0100.07721.79
7.0.100.0100.06721.73
7.0.90.0030.07321.73
7.0.80.0000.08321.73
7.0.70.0000.08721.65
7.0.60.0030.08321.81
7.0.50.0100.07722.06
7.0.40.0030.08020.15
7.0.30.0030.08720.04
7.0.20.0030.08720.04
7.0.10.0100.08020.21
7.0.00.0000.08720.21
5.6.280.0030.07321.07
5.6.260.0030.07720.89
5.6.250.0000.07720.67
5.6.240.0130.03320.63
5.6.230.0070.05320.66
5.6.220.0000.09020.70
5.6.210.0000.07720.59
5.6.200.0070.08020.96
5.6.190.0170.06320.93
5.6.180.0030.09020.92
5.6.170.0100.08321.06
5.6.160.0030.08720.93
5.6.150.0030.06720.98
5.6.140.0170.08320.96
5.6.130.0070.08020.98
5.6.120.0000.08021.07
5.6.110.0030.08721.07
5.6.100.0070.08320.91
5.6.90.0070.04321.06
5.6.80.0170.05020.50
5.6.70.0000.08020.43
5.6.60.0030.06720.32
5.6.50.0100.07320.31
5.6.40.0030.08020.46
5.6.30.0030.08020.50
5.6.20.0130.07020.25
5.6.10.0030.08320.54
5.6.00.0100.07020.48
5.5.380.0030.07720.46
5.5.370.0170.07020.32
5.5.360.0000.09020.45
5.5.350.0070.08020.46
5.5.340.0000.07720.86
5.5.330.0030.08021.02
5.5.320.0000.06721.03
5.5.310.0070.07720.99
5.5.300.0030.08320.91
5.5.290.0030.08320.86
5.5.280.0070.08720.93
5.5.270.0000.08720.76
5.5.260.0030.06320.88
5.5.250.0130.06720.84
5.5.240.0030.06020.28
5.5.230.0070.03720.27
5.5.220.0030.06720.34
5.5.210.0030.04020.05
5.5.200.0070.07720.30
5.5.190.0100.06720.29
5.5.180.0070.06720.24
5.5.160.0100.06320.38
5.5.150.0170.06720.12
5.5.140.0070.04320.29
5.5.130.0030.08320.26
5.5.120.0100.07320.12
5.5.110.0000.08020.16
5.5.100.0030.07020.16
5.5.90.0130.06020.20
5.5.80.0100.07320.25
5.5.70.0000.08020.21
5.5.60.0070.07320.19
5.5.50.0030.08020.12
5.5.40.0070.07719.98
5.5.30.0070.04320.14
5.5.20.0030.07020.14
5.5.10.0030.08020.25
5.5.00.0130.07320.05
5.4.450.0030.06319.60
5.4.440.0030.04319.44
5.4.430.0000.08019.35
5.4.420.0030.08719.50
5.4.410.0030.07319.13
5.4.400.0070.07019.03
5.4.390.0100.08319.01
5.4.380.0030.06019.18
5.4.370.0070.06719.00
5.4.360.0030.05319.08
5.4.350.0030.07719.16
5.4.340.0070.05019.01
5.4.320.0000.07719.02
5.4.310.0000.08019.27
5.4.300.0000.08319.18
5.4.290.0030.04319.18
5.4.280.0070.05019.20
5.4.270.0070.06719.16
5.4.260.0030.04319.00
5.4.250.0030.06018.97
5.4.240.0130.06718.99
5.4.230.0000.08019.02
5.4.220.0070.06719.16
5.4.210.0000.08018.96
5.4.200.0070.07719.00
5.4.190.0000.07719.11
5.4.180.0100.06719.26
5.4.170.0000.07718.94
5.4.160.0000.07719.05
5.4.150.0070.07319.14
5.4.140.0070.07316.19
5.4.130.0070.07316.16
5.4.120.0030.07016.33
5.4.110.0000.07316.18
5.4.100.0000.04316.28
5.4.90.0070.07016.48
5.4.80.0030.07016.45
5.4.70.0030.07016.36
5.4.60.0030.06716.26
5.4.50.0070.06716.11
5.4.40.0000.07716.53
5.4.30.0030.07316.49
5.4.20.0130.06016.20
5.4.10.0070.07016.46
5.4.00.0030.07015.70
5.3.290.0030.08014.53
5.3.280.0070.07014.44
5.3.270.0000.07314.70
5.3.260.0000.05014.62
5.3.250.0070.04014.45
5.3.240.0030.07014.39
5.3.230.0070.04014.53
5.3.220.0030.07014.39
5.3.210.0070.08014.57
5.3.200.0030.07014.39
5.3.190.0100.05314.48
5.3.180.0030.07014.45
5.3.170.0000.08014.41
5.3.160.0070.07014.57
5.3.150.0070.07014.38
5.3.140.0030.07714.38
5.3.130.0070.07014.49
5.3.120.0030.07714.61
5.3.110.0100.06014.39
5.3.100.0030.07314.05
5.3.90.0030.07713.80
5.3.80.0030.07313.89
5.3.70.0000.07014.02
5.3.60.0070.06713.93
5.3.50.0100.06313.77
5.3.40.0000.07314.00
5.3.30.0000.07014.00
5.3.20.0030.06713.48
5.3.10.0030.06313.59
5.3.00.0070.07013.48
5.2.170.0030.06011.77
5.2.160.0000.04011.77
5.2.150.0030.05311.77
5.2.140.0030.06011.77
5.2.130.0070.05311.77
5.2.120.0000.05711.77
5.2.110.0030.06011.77
5.2.100.0030.06011.77
5.2.90.0030.05011.77
5.2.80.0030.06011.77
5.2.70.0030.06311.77
5.2.60.0100.05311.77
5.2.50.0000.06011.77
5.2.40.0000.06011.77
5.2.30.0030.06011.77
5.2.20.0070.05711.77
5.2.10.0030.05711.77
5.2.00.0000.04711.77
5.1.60.0030.04711.77
5.1.50.0030.05011.77
5.1.40.0030.05011.77
5.1.30.0030.03011.77
5.1.20.0070.05311.77
5.1.10.0030.05011.77
5.1.00.0070.03011.77
5.0.50.0100.03711.77
5.0.40.0070.04011.77
5.0.30.0030.06011.77
5.0.20.0030.04011.77
5.0.10.0030.04011.77
5.0.00.0030.06711.77
4.4.90.0000.02011.77
4.4.80.0030.02311.77
4.4.70.0030.03311.77
4.4.60.0000.04011.77
4.4.50.0000.03311.77
4.4.40.0000.04711.77
4.4.30.0070.02711.77
4.4.20.0030.03311.77
4.4.10.0000.02311.77
4.4.00.0000.03711.77
4.3.110.0000.03711.77
4.3.100.0030.03311.77
4.3.90.0030.03011.77
4.3.80.0000.05311.77
4.3.70.0000.02311.77
4.3.60.0000.03711.77
4.3.50.0000.03711.77
4.3.40.0000.05011.77
4.3.30.0000.03711.77
4.3.20.0000.03311.77
4.3.10.0030.03311.77
4.3.00.0000.03311.77

preferences:
43.89 ms | 401 KiB | 5 Q