3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (($status = $_GET['st'] ?: '') != 'ac' && $status != 'ar') { echo "1: \$_GET invalid\n"; } $_GET['st'] = 'x'; if (($status = $_GET['st'] ?: '') != 'ac' && $status != 'ar') { echo "2: \$_GET invalid\n"; } $_GET['st'] = 'ac'; if (($status = $_GET['st'] ?: '') != 'ac' && $status != 'ar') { echo "3: \$_GET invalid\n"; } $_GET['st'] = 'ar'; if (($status = $_GET['st'] ?: '') != 'ac' && $status != 'ar') { echo "4: \$_GET invalid\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.5.10.0100.00716.66
8.5.00.0150.00821.80
8.4.160.0160.00819.72
8.4.150.0030.00014.05
8.4.140.0160.00617.47
8.4.130.0120.00517.77
8.4.120.0090.00820.45
8.4.110.0060.00322.63
8.4.100.0040.00518.02
8.4.90.0140.00818.57
8.4.80.0050.00618.96
8.4.70.0080.00818.20
8.4.60.0110.00618.80
8.4.50.0130.00717.82
8.4.40.0090.00019.44
8.4.30.0150.00620.35
8.4.20.0130.00618.79
8.4.10.0040.00417.70
8.3.280.0130.00618.49
8.3.270.0120.00716.66
8.3.260.0060.00416.75
8.3.250.0080.01018.80
8.3.240.0040.00416.68
8.3.230.0060.00316.63
8.3.220.0120.00619.13
8.3.210.0070.01116.73
8.3.200.0060.00316.88
8.3.190.0070.00820.84
8.3.180.0150.00516.99
8.3.170.0080.00017.37
8.3.160.0140.00716.77
8.3.150.0070.00719.22
8.3.140.0140.00417.27
8.3.130.0040.00418.31
8.3.120.0060.01020.90
8.3.110.0070.00320.94
8.3.100.0050.00324.06
8.3.90.0060.01326.77
8.3.80.0090.00017.97
8.3.70.0140.00716.75
8.3.60.0120.00916.88
8.3.50.0130.00718.25
8.3.40.0070.01418.63
8.3.30.0150.00618.88
8.3.20.0070.00321.60
8.3.10.0030.00621.92
8.3.00.0000.00722.57
8.2.290.0100.00920.33
8.2.280.0100.00918.85
8.2.270.0160.00316.83
8.2.260.0130.00322.64
8.2.250.0040.00416.66
8.2.240.0030.00617.05
8.2.230.0040.00822.58
8.2.220.0080.00037.54
8.2.210.0110.00726.77
8.2.200.0060.00316.63
8.2.190.0150.00318.41
8.2.180.0160.00316.88
8.2.170.0110.00322.96
8.2.160.0100.00322.15
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00721.07
8.2.110.0040.00420.94
8.2.100.0040.00819.51
8.2.90.0060.00317.75
8.2.80.0080.00018.86
8.2.70.0040.00417.75
8.2.60.0040.00417.75
8.2.50.0040.00417.75
8.2.40.0040.00419.12
8.2.30.0000.00719.37
8.2.20.0040.00418.09
8.2.10.0040.00419.50
8.2.00.0040.00419.19
8.1.330.0110.00720.41
8.1.320.0110.00816.33
8.1.310.0110.00816.78
8.1.300.0080.00818.33
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0000.00820.80
8.1.260.0030.00526.35
8.1.250.0050.00228.09
8.1.240.0080.00617.48
8.1.230.0060.00617.70
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0030.00617.23
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0070.00018.92
8.1.150.0040.00418.84
8.1.140.0080.00020.31
8.1.130.0050.00217.45
8.1.120.0000.00717.46
8.1.110.0000.00717.37
8.1.100.0030.00617.46
8.1.90.0070.00017.47
8.1.80.0040.00417.48
8.1.70.0070.00017.43
8.1.60.0040.00417.48
8.1.50.0050.00317.51
8.1.40.0030.00617.41
8.1.30.0050.00517.63
8.1.20.0000.00717.62
8.1.10.0040.00417.63
8.1.00.0080.00017.53
8.0.300.0030.00520.47
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0050.00217.37
8.0.260.0030.00316.79
8.0.250.0030.00517.00
8.0.240.0040.00416.94
8.0.230.0030.00316.95
8.0.220.0030.00316.99
8.0.210.0000.00716.93
8.0.200.0000.00717.02
8.0.190.0030.00316.91
8.0.180.0040.00417.00
8.0.170.0060.00316.99
8.0.160.0070.00316.89
8.0.150.0000.00717.01
8.0.140.0000.00816.87
8.0.130.0050.00013.26
8.0.120.0000.00816.91
8.0.110.0000.00716.86
8.0.100.0040.00416.98
8.0.90.0080.00016.96
8.0.80.0080.01016.89
8.0.70.0050.00316.94
8.0.60.0040.00416.83
8.0.50.0040.00416.83
8.0.30.0140.01117.29
8.0.20.0120.00616.91
8.0.10.0040.00416.98
8.0.00.0080.00817.01
7.4.330.0060.00015.55
7.4.320.0050.00216.62
7.4.300.0000.00616.49
7.4.290.0000.00816.61
7.4.280.0040.00416.60
7.4.270.0030.00316.50
7.4.260.0050.00013.25
7.4.250.0030.00316.42
7.4.240.0030.00416.52
7.4.230.0000.00916.39
7.4.220.0030.00316.68
7.4.210.0050.00916.60
7.4.200.0070.00016.63
7.4.140.0110.01217.86
7.4.130.0130.00316.47
7.4.120.0150.00616.50
7.4.110.0070.01016.28
7.4.100.0150.00516.46
7.4.90.0070.01016.58
7.4.80.0100.00719.39
7.4.70.0130.00316.46
7.4.60.0000.01516.41
7.4.50.0060.01016.44
7.4.40.0070.01116.51
7.4.10.0150.00415.25
7.4.00.0050.01414.97
7.3.330.0060.00316.44
7.3.320.0000.00613.07
7.3.310.0000.00716.25
7.3.300.0030.00316.43
7.3.290.0110.00316.42
7.3.260.0120.00816.51
7.3.240.0130.00716.43
7.3.230.0150.00216.50
7.3.210.0070.01016.48
7.3.200.0120.00416.50
7.3.190.0160.00416.41
7.3.180.0100.01016.42
7.3.170.0080.00816.43
7.3.160.0060.00916.44
7.3.130.0040.01414.74
7.3.120.0000.01514.81
7.3.110.0090.00614.81
7.3.100.0050.01114.72
7.3.90.0050.01114.84
7.3.80.0110.00814.53
7.3.70.0110.00314.66
7.3.60.0110.00614.78
7.3.50.0090.00614.81
7.3.40.0090.00614.61
7.3.30.0110.00814.55
7.3.20.0320.00415.59
7.3.10.0180.00215.61
7.3.00.0190.00915.76
7.2.330.0190.00316.88
7.2.320.0100.00716.83
7.2.310.0040.01216.83
7.2.300.0030.01416.48
7.2.290.0000.02016.84
7.2.260.0070.01315.02
7.2.250.0060.01215.23
7.2.240.0100.00714.99
7.2.230.0100.01015.38
7.2.220.0350.00514.86
7.2.210.0070.01114.96
7.2.200.0090.00815.03
7.2.190.0110.00714.93
7.2.180.0100.00614.82
7.2.170.0090.00514.64
7.2.160.0080.00914.81
7.2.150.0190.01015.63
7.2.140.0260.00615.95
7.2.130.0280.00215.87
7.2.120.0240.00815.86
7.2.110.0090.01015.70
7.2.100.0240.00615.92
7.2.90.0240.00616.01
7.2.80.0250.00816.01
7.2.70.0320.01115.81
7.2.60.0330.01015.92
7.2.50.0260.00616.04
7.2.40.0240.00315.85
7.2.30.0240.00515.86
7.2.20.0300.00816.03
7.2.10.0320.01116.03
7.2.00.0190.00915.78
7.1.330.0080.00315.73
7.1.320.0130.00814.53
7.1.310.0240.00514.84
7.1.300.0260.00314.64
7.1.290.0200.01014.65
7.1.280.0390.00414.79
7.1.270.0300.00514.82
7.1.260.0240.00914.71
7.1.250.0180.00714.75
7.1.240.0030.01015.76
7.1.230.0030.00515.91
7.1.220.0040.00415.88
7.1.210.0030.00715.83
7.1.200.0050.00515.59
7.1.190.0140.00015.64
7.1.180.0000.01415.75
7.1.170.0060.00615.72
7.1.160.0040.00415.88
7.1.150.0080.00315.72
7.1.140.0060.00615.94
7.1.130.0050.00515.86
7.1.120.0040.00815.83
7.1.110.0070.00715.73
7.1.100.0090.00615.94
7.1.90.0030.01016.04
7.1.80.0030.00615.88
7.1.70.0060.00615.93
7.1.60.0110.00415.97
7.1.50.0120.00315.93
7.1.40.0090.00315.92
7.1.30.0030.01215.92
7.1.20.0040.00415.96
7.1.10.0070.00315.76
7.1.00.0030.00615.86

preferences:
44.18 ms | 403 KiB | 5 Q