3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $_GET['myvar'] is unset echo $_GET['myvar'] ?? '' == 'hello' ? "true\n" : "false\n"; // $_GET['myvar'] is set but != 'hello' $_GET['myvar'] = 'farewell'; echo $_GET['myvar'] ?? '' == 'hello' ? "true\n" : "false\n"; // $_GET['myvar'] is set and == 'hello' $_GET['myvar'] = 'hello'; echo $_GET['myvar'] ?? '' == 'hello' ? "true\n" : "false\n"; // $_GET['myvar'] is set but "falsey" $_GET['myvar'] = 0; echo $_GET['myvar'] ?? '' == 'hello' ? "true\n" : "false\n"; $_GET['myvar'] = ''; echo $_GET['myvar'] ?? '' == 'hello' ? "true\n" : "false\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.3.130.0040.00418.38
8.3.120.0130.00618.77
8.3.110.0110.00318.19
8.3.100.0060.00316.76
8.3.90.0200.01026.77
8.3.80.0240.00721.63
8.3.70.0280.00821.67
8.3.60.0300.00521.63
8.3.50.0260.00723.50
8.3.40.0230.00922.79
8.3.30.0200.00722.99
8.3.20.0150.00825.47
8.3.10.0170.00625.71
8.3.00.0240.00326.46
8.2.250.0090.00916.59
8.2.240.0030.00718.95
8.2.230.0060.00320.94
8.2.220.0030.00737.54
8.2.210.0170.00726.77
8.2.200.0180.00321.63
8.2.190.0170.01121.70
8.2.180.0180.00826.34
8.2.170.0210.00922.90
8.2.160.0210.01024.87
8.2.150.0210.00326.21
8.2.140.0180.00525.71
8.2.130.0140.01226.46
8.2.120.0220.00522.40
8.2.110.0240.00223.90
8.2.100.0160.01322.19
8.2.90.0170.00622.30
8.2.80.0160.00923.05
8.2.70.0160.00922.13
8.2.60.0130.01122.20
8.2.50.0150.00822.42
8.2.40.0190.00423.39
8.2.30.0170.00722.38
8.2.20.0150.00523.62
8.2.10.0120.00722.38
8.2.00.0130.01223.05
8.1.300.0060.00317.76
8.1.290.0190.00628.80
8.1.280.0230.00726.34
8.1.270.0220.00425.38
8.1.260.0280.00526.56
8.1.250.0200.00527.43
8.1.240.0190.00624.69
8.1.230.0180.00823.79
8.1.220.0200.00422.28
8.1.210.0130.00722.77
8.1.200.0130.00621.95
8.1.190.0150.00722.06
8.1.180.0230.00222.43
8.1.170.0170.00522.67
8.1.160.0150.00622.72
8.1.150.0180.00422.67
8.1.140.0160.00322.03
8.1.130.0160.00722.74
8.1.120.0180.00522.10
8.1.110.0170.00422.03
8.1.100.0110.00822.02
8.1.90.0220.00022.03
8.1.80.0100.01322.11
8.1.70.0170.00422.03
8.1.60.0210.00922.14
8.1.50.0240.00622.12
8.1.40.0220.00722.09
8.1.30.0240.00422.12
8.1.20.0210.01022.19
8.1.10.0220.00722.08
8.1.00.0250.00422.07
8.0.300.0170.00223.33
8.0.290.0150.00521.76
8.0.280.0110.00622.56
8.0.270.0160.00621.78
8.0.260.0180.00522.57
8.0.250.0160.00621.82
8.0.240.0210.00221.79
8.0.230.0190.00321.82
8.0.220.0150.00721.75
8.0.210.0210.00221.80
8.0.200.0180.00421.76
8.0.190.0160.00721.78
8.0.180.0190.00521.71
8.0.170.0210.00521.79
8.0.160.0170.01021.80
8.0.150.0210.00921.76
8.0.140.0180.00221.77
8.0.130.0130.00321.75
8.0.120.0120.00421.71
8.0.110.0160.00921.80
8.0.100.0210.00321.69
8.0.90.0220.00321.68
8.0.80.0180.00721.74
8.0.70.0160.01121.72
8.0.60.0270.00421.64
8.0.50.0170.00821.80
8.0.30.0190.00521.74
8.0.20.0180.00521.77
8.0.10.0150.00921.91
7.4.330.0180.00321.16
7.4.320.0130.00921.69
7.4.300.0160.00521.63
7.4.290.0200.00421.68
7.4.280.0240.00321.69
7.4.270.0150.01221.61
7.4.260.0130.00421.65
7.4.250.0070.00621.58
7.4.240.0100.00521.55
7.4.230.0210.00821.70
7.4.220.0170.00721.66
7.4.210.0210.00321.68
7.4.200.0200.00421.58
7.4.190.0190.00621.61
7.4.180.0210.00321.62
7.4.160.0210.00221.71
7.4.150.0170.00321.59
7.4.140.0130.00521.54
7.4.130.0100.00521.61
7.4.120.0140.00721.53
7.4.110.0120.00121.58
7.4.100.0110.01121.61
7.4.90.0160.00721.57
7.4.80.0170.00521.60
7.4.70.0210.00221.56
7.4.60.0170.00721.60
7.4.50.0160.00921.60
7.4.40.0210.00721.61
7.4.30.0150.00721.62
7.4.20.0120.01021.60
7.4.10.0170.00421.57
7.4.00.0190.00321.60
7.3.330.0100.00917.07

preferences:
27 ms | 403 KiB | 5 Q