3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); function errorHandler($errno, $errstr, $errfile, $errline) { if ($errno === E_RECOVERABLE_ERROR) { $foo = []; asort($foo); echo $errstr . PHP_EOL; return true; } return false; } set_error_handler('errorHandler'); $key = [ (int) 0 => 'foo' ]; $select = [ 'id' => new stdClass(), 'foo' => 'foo', 'bar' => 'bar' ]; $missingFields = array_diff($key, $select) !== []; var_dump($missingFields);

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.120.0050.00420.42
8.4.110.0090.00918.55
8.4.100.0140.00717.73
8.4.90.0050.00418.67
8.4.80.0060.00319.75
8.4.70.0140.00717.94
8.4.60.0130.00720.39
8.4.50.0070.00820.64
8.4.40.0090.01021.41
8.4.30.0070.01017.75
8.4.20.0030.01717.76
8.4.10.0060.00320.59
8.3.250.0130.00518.69
8.3.240.0110.00916.82
8.3.230.0110.00816.83
8.3.220.0110.00817.27
8.3.210.0040.00318.60
8.3.200.0040.00416.48
8.3.190.0040.00519.00
8.3.180.0120.00617.29
8.3.170.0120.00617.00
8.3.160.0040.00418.68
8.3.150.0130.00716.71
8.3.140.0120.00316.93
8.3.130.0040.00418.41
8.3.120.0160.00320.70
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0050.00516.88
8.3.70.0150.00416.75
8.3.60.0040.01116.75
8.3.50.0150.00621.93
8.3.40.0150.00018.89
8.3.30.0000.01418.46
8.3.20.0070.00020.75
8.3.10.0000.00823.69
8.3.00.0070.00320.52
8.2.290.0110.00820.42
8.2.280.0050.00318.47
8.2.270.0120.00617.18
8.2.260.0080.00016.61
8.2.250.0050.00316.66
8.2.240.0030.00617.18
8.2.230.0070.01022.58
8.2.220.0030.00537.54
8.2.210.0140.00426.77
8.2.200.0060.00316.50
8.2.190.0160.00616.58
8.2.180.0090.00618.41
8.2.170.0170.00018.95
8.2.160.0140.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00421.00
8.2.110.0060.00320.51
8.2.100.0090.00318.03
8.2.90.0000.00817.91
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.92
8.2.50.0060.00318.10
8.2.40.0070.00022.14
8.2.30.0000.00819.16
8.2.20.0000.00717.73
8.2.10.0030.00618.11
8.2.00.0050.00218.03
8.1.330.0130.00716.20
8.1.320.0140.00516.34
8.1.310.0000.00718.32
8.1.300.0030.00618.52
8.1.290.0120.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0090.00022.46
8.1.230.0060.00620.95
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0000.00722.05
8.1.150.0040.00418.86
8.1.140.0040.00419.47
8.1.130.0070.00017.25
8.1.120.0070.00017.29
8.1.110.0000.00717.41
8.1.100.0000.00917.39
8.1.90.0040.00417.28
8.1.80.0040.00417.31
8.1.70.0000.00717.27
8.1.60.0030.00617.57
8.1.50.0060.00317.55
8.1.40.0090.00317.40
8.1.30.0060.00317.59
8.1.20.0040.00417.59
8.1.10.0070.00017.54
8.1.00.0080.00017.45
8.0.300.0040.00419.95
8.0.290.0040.00416.63
8.0.280.0070.00018.31
8.0.270.0050.00316.81
8.0.260.0000.00616.69
8.0.250.0030.00316.96
8.0.240.0030.00317.02
8.0.230.0070.00016.88
8.0.220.0000.00716.79
8.0.210.0030.00616.91
8.0.200.0060.00016.86
8.0.190.0020.00516.79
8.0.180.0070.00016.79
8.0.170.0090.00016.76
8.0.160.0000.00716.93
8.0.150.0070.00016.95
8.0.140.0070.00016.90
8.0.130.0050.00013.38
8.0.120.0030.00716.73
8.0.110.0040.00416.80
8.0.100.0040.00416.76
8.0.90.0040.00416.80
8.0.80.0090.00616.82
8.0.70.0040.00416.84
8.0.60.0000.00816.77
8.0.50.0080.00016.78
8.0.30.0110.00816.96
8.0.20.0120.00817.40
8.0.10.0000.00716.91
8.0.00.0120.00616.45
7.4.330.0030.00315.08
7.4.320.0070.00016.58
7.4.300.0040.00416.59
7.4.290.0000.00716.52
7.4.280.0000.00816.56
7.4.270.0030.00516.61
7.4.260.0000.00716.60
7.4.250.0000.00816.54
7.4.240.0070.00016.60
7.4.230.0000.00816.25
7.4.220.0100.01016.43
7.4.210.0030.01316.64
7.4.200.0000.00816.31
7.4.160.0100.00716.55
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0110.00516.44
7.4.120.0100.00716.39
7.4.110.0100.01316.62
7.4.100.0090.01316.29
7.4.90.0060.01116.59
7.4.80.0070.01019.39
7.4.70.0060.01116.30
7.4.60.0130.00616.40
7.4.50.0030.01216.62
7.4.40.0120.00616.48
7.4.30.0100.01016.58
7.4.10.0110.00714.93
7.4.00.0120.00715.17
7.3.330.0000.00913.15
7.3.320.0000.00513.43
7.3.310.0030.00316.42
7.3.300.0000.00616.49
7.3.290.0070.00816.46
7.3.280.0080.00916.40
7.3.270.0180.00617.40
7.3.260.0150.00316.46
7.3.250.0110.00716.46
7.3.240.0110.00516.43
7.3.230.0070.01116.39
7.3.210.0100.00716.38
7.3.200.0100.00616.46
7.3.190.0040.01216.35
7.3.180.0090.01016.36
7.3.170.0140.01116.37
7.3.160.0130.00316.32
7.3.130.0090.00914.63
7.3.120.0000.01915.02
7.3.110.0060.00914.85
7.3.100.0060.00914.63
7.3.90.0000.01915.02
7.3.80.0040.01214.93
7.3.70.0130.00314.98
7.3.60.0040.01414.95
7.3.50.0070.01114.79
7.3.40.0040.00714.77
7.3.30.0070.00714.97
7.3.20.0080.00816.79
7.3.10.0100.00716.75
7.3.00.0030.01016.79
7.2.330.0070.01316.61
7.2.320.0040.01516.72
7.2.310.0210.00016.51
7.2.300.0130.01016.73
7.2.290.0070.01416.70
7.2.260.0070.01315.16
7.2.250.0110.00714.94
7.2.240.0090.00615.08
7.2.230.0110.00715.36
7.2.220.0040.01115.16
7.2.210.0000.01515.08
7.2.200.0000.01815.06
7.2.190.0030.01415.05
7.2.180.0060.00814.98
7.2.170.0000.01515.11
7.2.160.0060.01015.07
7.2.150.0110.00716.69
7.2.140.0060.00617.08
7.2.130.0000.01316.83
7.2.120.0030.01016.86
7.2.110.0070.00916.81
7.2.100.0030.00916.91
7.2.90.0060.00916.79
7.2.80.0060.00616.95
7.2.70.0100.00716.77
7.2.60.0140.00016.82
7.2.50.0030.00916.86
7.2.40.0000.01416.86
7.2.30.0090.00617.07
7.2.20.0000.01117.14
7.2.10.0080.00816.96
7.2.00.0000.00917.13
7.1.330.0100.00716.07
7.1.320.0070.01016.06
7.1.310.0070.00715.70
7.1.300.0040.01415.49
7.1.290.0000.01115.98
7.1.280.0030.01015.76
7.1.270.0040.00415.74
7.1.260.0090.00315.84
7.1.250.0030.01315.50
7.1.240.0090.00615.63
7.1.230.0040.00815.83
7.1.220.0070.00315.64
7.1.210.0040.00715.86
7.1.200.0110.00315.65
7.1.190.0060.00315.92
7.1.180.0060.00915.46
7.1.170.0100.00315.76
7.1.160.0060.00315.70
7.1.150.0040.01415.96
7.1.140.0030.00615.54
7.1.130.0000.01415.56
7.1.120.0070.00415.73
7.1.110.0060.00616.00
7.1.100.0060.01015.79
7.1.90.0030.01215.86
7.1.80.0030.01315.65
7.1.70.0040.01416.57
7.1.60.0060.01017.77
7.1.50.0070.00716.39
7.1.40.0140.00015.90
7.1.30.0090.00615.71
7.1.20.0090.00615.59
7.1.10.0030.00715.84
7.1.00.0070.03819.16
7.0.330.0090.00615.19
7.0.320.0100.00015.35
7.0.310.0060.00315.63
7.0.300.0080.00315.07
7.0.290.0030.01015.13
7.0.280.0060.00915.47
7.0.270.0070.00715.23
7.0.260.0040.00415.11
7.0.250.0120.00315.33
7.0.240.0070.01015.23
7.0.230.0030.00915.13
7.0.220.0100.00715.48
7.0.210.0040.01115.52
7.0.200.0170.00315.05
7.0.190.0070.00715.31
7.0.180.0040.00715.29
7.0.170.0090.00315.43
7.0.160.0070.00715.45
7.0.150.0030.01015.61
7.0.140.0040.00815.63
7.0.130.0090.00315.22
7.0.120.0030.00915.36
7.0.110.0080.00415.55
7.0.100.0040.03217.71
7.0.90.0070.03317.59
7.0.80.0120.02817.70
7.0.70.0180.02317.71
7.0.60.0000.04017.73
7.0.50.0130.02817.97
7.0.40.0070.03416.92
7.0.30.0120.03017.05
7.0.20.0070.03216.84
7.0.10.0080.03116.92
7.0.00.0060.03016.82
5.6.400.0040.00714.57
5.6.390.0070.00314.66
5.6.380.0060.00614.11
5.6.370.0040.01114.19
5.6.360.0060.00614.18
5.6.350.0080.00814.27
5.6.340.0100.00614.60
5.6.330.0030.01014.57
5.6.320.0100.00014.14
5.6.310.0030.01013.97
5.6.300.0030.01014.20
5.6.290.0040.00814.25
5.6.280.0060.00614.26
5.6.270.0090.00614.10
5.6.260.0030.00714.27
5.6.250.0070.03917.66
5.6.240.0070.03517.43
5.6.230.0040.03717.55
5.6.220.0080.03217.42
5.6.210.0060.03117.41
5.6.200.0050.03417.60
5.6.190.0050.03617.67
5.6.180.0120.03017.66
5.6.170.0130.02817.71
5.6.160.0080.02817.74
5.6.150.0090.03017.62
5.6.140.0100.02917.67
5.6.130.0050.03517.77
5.6.120.0110.03017.77
5.6.110.0110.02617.69
5.6.100.0100.02917.54
5.6.90.0080.03617.61
5.6.80.0120.02717.32
5.6.70.0130.02517.42
5.6.60.0100.02617.46
5.6.50.0030.03317.26
5.6.40.0070.03017.35
5.6.30.0070.03217.30
5.6.20.0090.02817.33
5.6.10.0090.02717.34
5.6.00.0090.03417.32

preferences:
122.05 ms | 403 KiB | 5 Q