3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); var_dump(array_key_exists(1, null)); var_dump(in_array(1, null)); var_dump(array_search(1, null));

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.1.130.0000.00720.07
8.1.120.0030.00617.43
8.1.110.0030.00617.27
8.1.100.0030.00617.41
8.1.90.0040.00417.38
8.1.80.0000.00717.34
8.1.70.0070.00017.23
8.1.60.0060.00317.45
8.1.50.0060.00317.47
8.1.40.0000.00717.34
8.1.30.0050.00217.47
8.1.20.0040.00417.47
8.1.10.0080.00017.46
8.1.00.0040.00417.37
8.0.260.0070.00018.36
8.0.250.0100.00016.83
8.0.240.0000.00816.86
8.0.230.0030.00316.80
8.0.220.0050.00516.80
8.0.210.0000.00716.91
8.0.200.0060.00016.96
8.0.190.0000.00716.91
8.0.180.0000.00816.88
8.0.170.0030.00616.92
8.0.160.0050.00316.95
8.0.150.0000.00716.68
8.0.140.0000.00716.75
8.0.130.0000.00713.36
8.0.120.0000.00816.88
8.0.110.0070.00016.88
8.0.100.0030.00316.82
8.0.90.0050.00316.71
8.0.80.0050.01016.88
8.0.70.0040.00416.99
8.0.60.0040.00416.75
8.0.50.0000.00716.74
8.0.30.0090.00916.85
8.0.20.0040.01517.40
8.0.10.0000.00816.81
8.0.00.0090.01516.57
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0040.00416.50
7.4.290.0040.00416.52
7.4.280.0030.00716.53
7.4.270.0030.00316.49
7.4.260.0000.00716.48
7.4.250.0000.00916.38
7.4.240.0040.00416.55
7.4.230.0000.00716.37
7.4.220.0040.00416.41
7.4.210.0030.01116.52
7.4.200.0000.00816.35
7.4.160.0120.00616.45
7.4.140.0100.01017.86
7.4.130.0070.01016.55
7.4.120.0090.01116.47
7.4.110.0120.00916.46
7.4.100.0100.00716.54
7.4.90.0100.01216.21
7.4.80.0120.00919.39
7.4.70.0090.00916.48
7.4.60.0120.00416.17
7.4.50.0030.01316.42
7.4.40.0100.00716.59
7.4.10.0070.01015.06
7.4.00.0090.00514.81
7.3.330.0000.00513.13
7.3.320.0050.00012.98
7.3.310.0030.00316.32
7.3.300.0030.00316.18
7.3.290.0030.00316.09
7.3.280.0110.00616.28
7.3.260.0150.00716.37
7.3.240.0090.00916.48
7.3.230.0080.00816.45
7.3.210.0170.00616.45
7.3.200.0030.01516.32
7.3.190.0060.01016.30
7.3.180.0060.01616.37
7.3.170.0000.01616.21
7.3.160.0080.00816.43
7.3.130.0110.00414.97
7.3.120.0070.01114.99
7.3.110.0000.01714.71
7.3.100.0030.01014.64
7.3.90.0030.01314.76
7.3.80.0070.01014.94
7.3.70.0030.01014.64
7.3.60.0030.00914.86
7.3.50.0030.00914.67
7.3.40.0070.00714.62
7.3.30.0000.01414.64
7.3.20.0030.00616.51
7.3.10.0070.00416.61
7.3.00.0030.00916.22
7.2.330.0090.00916.29
7.2.320.0110.00516.25
7.2.310.0090.01216.53
7.2.300.0100.00616.43
7.2.290.0060.01216.25
7.2.260.0040.01414.74
7.2.250.0040.01214.84
7.2.240.0100.00714.81
7.2.230.0070.00714.75
7.2.220.0090.00614.73
7.2.210.0110.00714.60
7.2.200.0060.00815.02
7.2.190.0070.00714.81
7.2.180.0060.00914.81
7.2.170.0000.01214.95
7.2.160.0040.01214.86
7.2.150.0000.01416.73
7.2.140.0040.00816.78
7.2.130.0070.01016.81
7.2.120.0090.00616.71
7.2.110.0140.01016.37
7.2.100.0070.00916.64
7.2.90.0010.01016.60
7.2.80.0080.00516.37
7.2.70.0080.00616.57
7.2.60.0030.01216.51
7.2.50.0030.00916.73
7.2.40.0060.00716.77
7.2.30.0050.01116.65
7.2.20.0040.01116.75
7.2.10.0100.00616.55
7.2.00.0080.00516.76
7.1.330.0090.00615.77
7.1.320.0000.01215.74
7.1.310.0030.01415.59
7.1.300.0090.00615.78
7.1.290.0060.01115.73
7.1.280.0030.01015.75
7.1.270.0040.00415.72
7.1.260.0030.01015.48
7.1.250.0000.01015.56
7.1.240.0110.00415.75
7.1.230.0030.01015.71
7.1.220.0060.00615.80
7.1.210.0070.00415.65
7.1.200.0040.00915.63
7.1.190.0100.00215.64
7.1.180.0030.00915.62
7.1.170.0090.00215.42
7.1.160.0090.00615.37
7.1.150.0060.00915.69
7.1.140.0070.00915.55
7.1.130.0080.00515.49
7.1.120.0070.00615.65
7.1.110.0100.00315.73
7.1.100.0080.00615.74
7.1.90.0030.00915.75
7.1.80.0050.00615.67
7.1.70.0050.00815.72
7.1.60.0140.00824.63
7.1.50.0120.01124.53
7.1.40.0120.01124.49
7.1.30.0140.00824.43
7.1.20.0100.01124.65
7.1.10.0080.00615.44
7.1.00.0030.01015.48
7.0.330.0000.00815.07
7.0.320.0040.00715.07
7.0.310.0050.00515.45
7.0.300.0040.00815.15
7.0.290.0060.00315.29
7.0.280.0040.01115.43
7.0.270.0030.00715.34
7.0.260.0060.00915.27
7.0.250.0040.00815.44
7.0.240.0040.01115.35
7.0.230.0070.00715.50
7.0.220.0070.00715.06
7.0.210.0060.00615.28
7.0.200.0000.01015.41
7.0.190.0100.00315.36
7.0.180.0030.00315.37
7.0.170.0030.00315.24
7.0.160.0000.00915.32
7.0.150.0080.00615.26
7.0.140.0080.00615.58
7.0.130.0030.01315.51
7.0.120.0030.00915.33
7.0.110.0030.00915.46
7.0.100.0060.00315.18
7.0.90.0030.00715.16
7.0.80.0060.00615.30
7.0.70.0070.00715.36
7.0.60.0040.00715.35
7.0.50.0080.00315.14
7.0.40.0050.00313.32
7.0.30.0040.00713.39
7.0.20.0000.01013.38
7.0.10.0000.00813.25
7.0.00.0070.00713.08
5.6.400.0050.00414.13
5.6.390.0000.01213.90
5.6.380.0060.00614.40
5.6.370.0160.00013.78
5.6.360.0040.00814.10
5.6.350.0030.00714.23
5.6.340.0110.00313.98
5.6.330.0070.00314.40
5.6.320.0100.00314.25
5.6.310.0100.00314.22
5.6.300.0070.00713.64
5.6.290.0040.01114.14
5.6.280.0120.00014.24
5.6.270.0020.00514.26
5.6.260.0070.00014.21
5.6.250.0030.00614.20
5.6.240.0070.00714.27
5.6.230.0050.00814.15
5.6.220.0000.01013.81
5.6.210.0030.00614.43
5.6.200.0000.01214.11
5.6.190.0040.00413.87
5.6.180.0030.00614.14
5.6.170.0040.01114.21
5.6.160.0140.00014.09
5.6.150.0000.01013.85
5.6.140.0070.00714.27
5.6.130.0030.00714.09
5.6.120.0100.00314.21
5.6.110.0080.00814.18
5.6.100.0120.00413.91
5.6.90.0080.00413.82
5.6.80.0000.01114.06
5.6.70.0090.00313.95
5.6.60.0040.00414.10
5.6.50.0040.00814.00
5.6.40.0000.01514.14
5.6.30.0060.00314.07
5.6.20.0040.00414.01
5.6.10.0070.00713.85
5.6.00.0030.00814.09

preferences:
13.54 ms | 406 KiB | 5 Q