3v4l.org

run code in 300+ PHP versions simultaneously
<?php function vinHasRecallCode($vin, $code) { $json = file_get_contents("http://www.vw.com/s2f/vwrecall-nhtsa2/vin/$vin"); if (!$json) { throw new Exception('Error contacting API server.'); } $data = json_decode($json); if (!($data instanceof stdClass)) { throw new Exception('Malformed JSON data.'); } if (!is_array($data->recalls)) { throw new Exception('Malformed JSON schema.'); } if (empty($data->recalls)) { return false; } return in_array(strtolower($code), array_map('strtolower', $data->recalls)); } var_dump(vinHasRecallCode('3VWTL81K29M344780', '23Q2'));

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.0130.00619.23
8.3.30.0140.00019.21
8.3.20.0040.00420.57
8.3.10.0090.00024.03
8.3.00.0060.00318.00
8.2.170.0070.00722.96
8.2.160.0070.01420.65
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.01017.88
8.2.110.0040.00722.52
8.2.100.0060.00618.16
8.2.90.0050.00319.53
8.2.80.0040.00418.00
8.2.70.0070.00717.88
8.2.60.0040.00418.17
8.2.50.0080.00018.07
8.2.40.0000.00921.23
8.2.30.0040.00420.85
8.2.20.0050.00318.10
8.2.10.0040.00418.23
8.2.00.0050.00318.15
8.1.270.0100.00023.84
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0100.00022.61
8.1.230.0120.00017.89
8.1.220.0000.01017.74
8.1.210.0030.00618.77
8.1.200.0100.00017.47
8.1.190.0000.00817.47
8.1.180.0040.00418.10
8.1.170.0040.00419.20
8.1.160.0070.00022.15
8.1.150.0000.00819.11
8.1.140.0040.00419.67
8.1.130.0000.00718.03
8.1.120.0000.00717.61
8.1.110.0040.00417.68
8.1.100.0070.00017.57
8.1.90.0000.00717.52
8.1.80.0070.00017.58
8.1.70.0040.00417.49
8.1.60.0060.00317.76
8.1.50.0050.00317.64
8.1.40.0000.00817.68
8.1.30.0070.00317.78
8.1.20.0040.00417.81
8.1.10.0000.00817.86
8.1.00.0080.00017.63
8.0.300.0000.00818.77
8.0.290.0070.00017.13
8.0.280.0040.00418.73
8.0.270.0000.00717.60
8.0.260.0030.00317.55
8.0.250.0050.00217.14
8.0.240.0070.00017.24
8.0.230.0030.00317.27
8.0.220.0070.00017.17
8.0.210.0000.00717.10
8.0.200.0060.00017.25
8.0.190.0000.00917.13
8.0.180.0040.00417.15
8.0.170.0040.00417.22
8.0.160.0030.00817.15
8.0.150.0000.00917.26
8.0.140.0040.00417.16
8.0.130.0000.00613.86
8.0.120.0040.00417.40
8.0.110.0030.00517.16
8.0.100.0000.00817.11
8.0.90.0030.00517.20
8.0.80.0100.00617.21
8.0.70.0060.00317.21
8.0.60.0050.00317.21
8.0.50.0000.00817.32
8.0.30.0130.00817.56
8.0.20.0150.00617.45
8.0.10.0050.00317.20
8.0.00.0110.00717.13
7.4.330.0030.00315.08
7.4.320.0060.00016.58
7.4.300.0040.00416.68
7.4.290.0030.00516.71
7.4.280.0040.00416.66
7.4.270.0070.00016.67
7.4.260.0030.00516.74
7.4.250.0050.00316.84
7.4.240.0040.00516.90
7.4.230.0000.00816.91
7.4.220.0100.01316.82
7.4.210.0080.00816.90
7.4.200.0000.00916.64
7.4.160.0090.00916.71
7.4.150.0060.01217.40
7.4.140.0150.00817.86
7.4.130.0050.01316.83
7.4.120.0150.00616.77
7.4.110.0130.01116.92
7.4.100.0170.00816.77
7.4.90.0090.00816.66
7.4.80.0100.00719.39
7.4.70.0100.00716.62
7.4.60.0140.00316.83
7.4.50.0000.00816.86
7.4.40.0130.00416.63
7.4.30.0090.00917.02
7.4.00.0070.01015.31
7.3.330.0060.00013.43
7.3.320.0050.00013.63
7.3.310.0050.00216.61
7.3.300.0050.00316.65
7.3.290.0050.00316.64
7.3.280.0110.00816.64
7.3.270.0060.01217.40
7.3.260.0150.00616.94
7.3.250.0080.01116.76
7.3.240.0090.01316.69
7.3.230.0060.01216.88
7.3.210.0090.00916.89
7.3.200.0060.01216.75
7.3.190.0070.01216.59
7.3.180.0130.00316.59
7.3.170.0100.01016.55
7.3.160.0130.00316.73
7.3.120.0100.00714.86
7.3.110.0030.00915.29
7.3.100.0060.01015.27
7.3.90.0100.00315.13
7.3.80.0110.00614.99
7.3.70.0030.01215.29
7.3.60.0030.00915.00
7.3.50.0070.01014.89
7.3.40.0090.00614.92
7.3.30.0110.00015.25
7.3.20.0030.01016.71
7.3.10.0030.01517.13
7.3.00.0080.00316.64
7.2.330.0060.01216.75
7.2.320.0080.01216.95
7.2.310.0170.00716.69
7.2.300.0090.00916.66
7.2.290.0060.01216.81
7.2.250.0170.00314.91
7.2.240.0030.01615.52
7.2.230.0070.01115.46
7.2.220.0000.01015.22
7.2.210.0090.00314.93
7.2.200.0090.00615.30
7.2.190.0140.00315.38
7.2.180.0070.01115.38
7.2.170.0040.01515.44
7.2.60.0000.01317.11
7.2.00.0030.01019.93
7.1.330.0110.00316.15
7.1.320.0120.00416.01
7.1.310.0060.00916.08
7.1.300.0070.00716.06
7.1.290.0060.01216.15
7.1.280.0090.00615.98
7.1.270.0040.01116.20
7.1.260.0070.00716.11
7.1.200.0060.00916.18
7.1.100.0080.00818.54
7.1.70.0000.00717.61
7.1.60.0030.01619.43
7.1.50.0070.01417.08
7.1.00.0070.07722.71
7.0.200.0280.00314.98
7.0.60.0070.08020.34
7.0.50.0000.08018.27
7.0.40.0100.08720.57
7.0.30.0200.04020.51
7.0.20.0230.04320.56
7.0.10.0170.04720.61
7.0.00.0030.07720.50
5.6.280.0100.06321.34
5.6.210.0100.07320.79
5.6.200.0030.08018.46
5.6.190.0070.05721.13
5.6.180.2670.04321.15
5.6.170.0200.04720.84
5.6.160.0070.08720.82
5.6.150.0070.06718.58
5.6.140.0070.08018.56
5.6.130.0070.04318.54
5.6.120.0130.07721.35
5.6.110.0070.04721.41
5.6.100.0170.07721.53
5.6.90.0070.07321.45
5.6.80.0070.03720.91
5.5.350.4170.04020.91
5.5.340.0070.06318.37
5.5.330.0100.08020.91
5.5.320.0130.04720.66
5.5.310.0270.04720.68
5.5.300.0030.04718.29
5.5.290.0130.03018.34
5.5.280.0070.05021.25
5.5.270.0000.06721.00
5.5.260.0070.05721.06
5.5.250.0000.08021.06
5.5.240.0070.07020.78
5.4.450.0430.07319.99
5.4.440.0630.05719.89
5.4.430.0700.07720.11
5.4.420.0630.04719.99
5.4.410.0570.05019.97
5.4.400.0770.06719.67
5.4.390.0670.04719.76
5.4.380.0700.04719.76
5.4.370.0600.05319.70
5.4.360.0730.06019.60
5.4.350.0600.04719.66
5.4.340.0470.05719.87
5.4.320.0600.04719.78
5.4.310.0600.06319.68
5.4.300.0630.06319.67
5.4.290.0470.06319.73
5.4.280.0600.05319.70
5.4.270.0600.06319.57
5.4.260.0670.04319.67
5.4.250.0530.05319.77
5.4.240.0730.07019.80
5.4.230.0570.05719.65
5.4.220.0730.06719.80
5.4.210.0570.05319.70
5.4.200.0630.04719.55
5.4.190.0530.05719.76
5.4.180.0600.05719.88
5.4.170.0530.05019.65
5.4.160.0500.05019.71
5.4.150.0570.06319.70
5.4.140.0530.06316.99
5.4.130.0670.05017.03
5.4.120.0630.05017.02
5.4.110.0570.05317.11
5.4.100.0500.05017.05
5.4.90.0470.05017.05
5.4.80.0030.05317.09
5.4.70.0100.05317.15
5.4.60.0070.05717.23
5.4.50.0400.04016.93
5.4.40.0730.04016.96
5.4.30.0600.06017.07
5.4.20.0500.06016.93
5.4.10.0470.05317.17
5.4.00.0600.03716.40

preferences:
50.03 ms | 400 KiB | 5 Q