3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $_GET['myvar'] isn't set... echo ($_GET['myvar'] ?? '') == 'hello' ? "hello!\n" : "goodbye!\n"; // $_GET['myvar'] is set but != 'hello' $_GET['myvar'] = 'farewell'; echo ($_GET['myvar'] ?? '') == 'hello' ? "hello!\n" : "goodbye!\n"; // $_GET['myvar'] is set and == 'hello' $_GET['myvar'] = 'hello'; echo ($_GET['myvar'] ?? '') == 'hello' ? "hello!\n" : "goodbye!\n";

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.10.0100.00624.01
8.3.140.0030.00518.98
8.3.130.0050.00318.29
8.3.120.0040.00420.82
8.3.110.0080.00820.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0080.00018.56
8.3.70.0140.00716.63
8.3.60.0120.00316.50
8.3.50.0180.00020.40
8.3.40.0090.00618.97
8.3.30.0120.00619.10
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0050.00326.16
8.2.260.0120.00616.61
8.2.250.0030.00616.50
8.2.240.0080.00018.70
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0140.00316.63
8.2.180.0110.00425.92
8.2.170.0120.00322.96
8.2.160.0070.01122.96
8.2.150.0000.00725.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.81
8.2.110.0000.00820.35
8.2.100.0120.00019.57
8.2.90.0030.00617.75
8.2.80.0000.00818.92
8.2.70.0090.00017.50
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0040.00418.15
8.2.30.0040.00418.02
8.2.20.0000.00720.41
8.2.10.0050.00218.14
8.2.00.0030.00719.39
8.1.310.0110.00716.13
8.1.300.0060.00318.46
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0030.00523.99
8.1.260.0130.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00022.42
8.1.230.0090.00319.14
8.1.220.0070.00017.77
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0000.00918.58
8.1.160.0040.00418.86
8.1.150.0040.00418.62
8.1.140.0040.00417.38
8.1.130.0000.00718.80
8.1.120.0030.00317.41
8.1.110.0070.00017.39
8.1.100.0030.00517.35
8.1.90.0040.00417.41
8.1.80.0080.00017.43
8.1.70.0030.00317.43
8.1.60.0130.00617.45
8.1.50.0150.00517.46
8.1.40.0150.00517.46
8.1.30.0180.00017.66
8.1.20.0130.00517.60
8.1.10.0130.00517.44
8.1.00.0130.00517.50
8.0.300.0060.00319.57
8.0.290.0050.00316.75
8.0.280.0040.00418.39
8.0.270.0000.00716.77
8.0.260.0060.00018.39
8.0.250.0030.00316.94
8.0.240.0000.00716.93
8.0.230.0030.00316.84
8.0.220.0020.00516.87
8.0.210.0050.00216.88
8.0.200.0060.00016.86
8.0.190.0070.00716.91
8.0.180.0040.01216.92
8.0.170.0120.00316.87
8.0.160.0090.00616.79
8.0.150.0130.00316.77
8.0.140.0070.00716.83
8.0.130.0150.00016.78
8.0.120.0150.00016.80
8.0.110.0090.00616.75
8.0.100.0070.00716.80
8.0.90.0060.00616.67
8.0.80.0120.00016.68
8.0.70.0060.00616.77
8.0.60.0090.00316.78
8.0.50.0100.00216.75
8.0.30.0130.00416.74
8.0.20.0150.00016.93
8.0.10.0150.00216.87
7.4.330.0020.00215.55
7.4.320.0070.00016.62
7.4.300.0030.00316.52
7.4.290.0050.00816.45
7.4.280.0100.00716.52
7.4.270.0000.01416.42
7.4.260.0110.00416.55
7.4.250.0140.00416.59
7.4.240.0150.00316.39
7.4.230.0080.00816.55
7.4.220.0140.00316.49
7.4.210.0110.00516.63
7.4.200.0130.00016.41
7.4.190.0070.00716.54
7.4.180.0060.00616.53
7.4.160.0120.00016.53
7.4.150.0140.00016.63
7.4.140.0130.00016.36
7.4.130.0020.00716.43
7.4.120.0110.00316.48
7.4.110.0070.00716.48
7.4.100.0090.00516.54
7.4.90.0130.00016.28
7.4.80.0130.00016.10
7.4.70.0030.00716.50
7.4.60.0070.00416.26
7.4.50.0070.00316.34
7.4.40.0040.00716.14
7.4.30.0050.00516.43
7.4.20.0110.00016.17
7.4.10.0070.00316.30
7.4.00.0040.00616.36
7.1.00.0070.00417.12

preferences:
35.81 ms | 403 KiB | 5 Q