3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a["foo"] = "bar"; $a["baz"] = "quux"; $a["100"] = "zimbabwe"; echo "\$a is an associative map with some things in it: "; var_export($a); echo "\n\n"; $keys = array_keys($a); echo "It has these keys: "; var_export($keys); echo "\n\n"; echo "But there was a silent string-int coercion when we added an object to the container using a string key that looked like an int\n\n"; var_dump( is_string($keys[2]) );

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.80.0100.00016.23
8.3.70.0090.01216.58
8.3.60.0100.01018.31
8.3.50.0100.01221.27
8.3.40.0070.00718.83
8.3.30.0100.01020.14
8.3.20.0000.00820.36
8.3.10.0100.00322.10
8.3.00.0180.00022.58
8.2.200.0030.00716.63
8.2.190.0090.01316.58
8.2.180.0120.00318.04
8.2.170.0100.00322.96
8.2.160.0090.00618.66
8.2.150.0080.00024.18
8.2.140.0110.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00420.79
8.2.110.0060.00322.05
8.2.100.0060.00617.78
8.2.90.0040.00419.13
8.2.80.0070.00019.47
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0040.00418.07
8.2.40.0000.01018.15
8.2.30.0060.00319.30
8.2.20.0040.00417.70
8.2.10.0000.00817.69
8.2.00.0050.00317.71
8.1.290.0080.00330.84
8.1.280.0120.00925.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.82
8.1.230.0090.00319.16
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0060.00617.22
8.1.190.0040.00417.41
8.1.180.0080.00018.88
8.1.170.0040.00418.59
8.1.160.0070.00018.68
8.1.150.0040.00418.57
8.1.140.0050.00317.34
8.1.130.0000.00717.70
8.1.120.0030.00317.36
8.1.110.0000.00717.28
8.1.100.0040.00417.42
8.1.90.0040.00417.39
8.1.80.0000.00717.37
8.1.70.0040.00417.37
8.1.60.0040.00417.48
8.1.50.0040.00417.38
8.1.40.0030.00517.48
8.1.30.0040.00417.59
8.1.20.0040.00417.51
8.1.10.0040.00417.63
8.1.00.0070.00017.43
8.0.300.0090.00018.77
8.0.290.0040.00417.18
8.0.280.0030.00318.43
8.0.270.0000.00717.25
8.0.260.0030.00316.72
8.0.250.0040.00416.93
8.0.240.0050.00316.87
8.0.230.0070.00016.86
8.0.220.0040.00416.81
8.0.210.0030.00316.74
8.0.200.0030.00316.89
8.0.190.0020.00516.93
8.0.180.0040.00416.84
8.0.170.0040.00416.87
8.0.160.0030.00316.66
8.0.150.0040.00416.75
8.0.140.0000.00816.80
8.0.130.0060.00013.26
8.0.120.0050.00316.73
8.0.110.0070.00016.85
8.0.100.0000.00816.73
8.0.90.0030.00516.64
8.0.80.0060.00916.87
8.0.70.0040.00416.85
8.0.60.0040.00416.69
8.0.50.0000.00716.81
8.0.30.0090.01017.21
8.0.20.0120.00917.40
8.0.10.0000.00816.86
8.0.00.0090.01116.65
7.4.330.0000.00515.03
7.4.320.0070.00016.34
7.4.300.0000.00716.33
7.4.290.0070.00016.29
7.4.280.0040.00416.50
7.4.270.0040.00416.42
7.4.260.0030.00313.28
7.4.250.0000.00716.47
7.4.240.0050.00216.53
7.4.230.0040.00416.63
7.4.220.0090.01216.49
7.4.210.0100.00816.53
7.4.200.0070.00016.54
7.4.190.0030.00316.68
7.4.160.0060.00916.39
7.4.150.0090.00917.40
7.4.140.0120.00917.86
7.4.130.0060.01116.49
7.4.120.0120.00516.40
7.4.110.0030.01516.51
7.4.100.0030.01316.41
7.4.90.0070.01016.29
7.4.80.0060.01219.39
7.4.70.0130.00516.55
7.4.60.0110.01116.56
7.4.50.0050.00316.54
7.4.40.0030.01022.77
7.4.30.0110.01416.49
7.4.10.0100.00715.19
7.4.00.0050.01015.05
7.3.330.0030.00313.00
7.3.320.0050.00013.06
7.3.310.0000.00716.05
7.3.300.0030.00316.21
7.3.290.0040.01116.36
7.3.280.0090.00916.26
7.3.270.0070.01017.40
7.3.260.0090.01416.29
7.3.250.0160.00816.40
7.3.240.0030.01316.41
7.3.230.0110.00616.39
7.3.210.0090.01216.48
7.3.200.0050.01119.39
7.3.190.0150.00816.64
7.3.180.0050.01116.69
7.3.170.0110.00516.30
7.3.160.0130.01016.54
7.3.130.0040.01414.46
7.3.120.0080.00914.67
7.3.110.0110.00614.99
7.3.100.0070.00714.79
7.3.90.0060.00914.94
7.3.80.0030.01414.49
7.3.70.0090.00314.85
7.3.60.0030.00814.84
7.3.50.0030.01014.47
7.3.40.0030.00914.48
7.3.30.0040.01114.80
7.3.20.0070.00316.74
7.3.10.0040.00916.48
7.3.00.0050.00616.70
7.2.330.0120.00616.79
7.2.320.0080.01216.45
7.2.310.0110.00616.73
7.2.300.0120.00616.64
7.2.290.0110.01116.66
7.2.260.0130.00614.88
7.2.250.0000.01614.91
7.2.240.0070.00715.04
7.2.230.0040.01115.31
7.2.220.0040.01215.36
7.2.210.0040.00415.18
7.2.200.0060.00614.97
7.2.190.0030.01215.07
7.2.180.0030.00914.95
7.2.170.0060.00315.16
7.2.160.0040.00414.89
7.2.150.0140.00016.89
7.2.140.0090.00316.55
7.2.130.0050.00816.87
7.2.120.0040.00616.82
7.2.110.0070.00516.93
7.2.100.0080.00616.97
7.2.90.0020.01017.07
7.2.80.0030.00816.81
7.2.70.0090.00516.83
7.2.60.0050.00917.04
7.2.50.0080.00616.98
7.2.40.0030.01016.69
7.2.30.0070.00716.77
7.2.20.0040.00917.00
7.2.10.0040.00816.97
7.2.00.0030.00916.81
7.1.330.0030.00715.94
7.1.320.0090.00615.88
7.1.310.0000.01115.88
7.1.300.0030.00615.67
7.1.290.0090.00315.82
7.1.280.0100.00315.75
7.1.270.0040.01115.71
7.1.260.0060.00615.47
7.1.250.0100.00215.87
7.1.240.0070.00716.05
7.1.230.0070.00715.70
7.1.220.0120.00315.56
7.1.210.0070.00415.70
7.1.200.0080.00515.71
7.1.190.0030.01015.79
7.1.180.0080.00615.81
7.1.170.0070.00715.73
7.1.160.0050.00515.79
7.1.150.0000.01715.93
7.1.140.0040.01115.63
7.1.130.0000.00815.82
7.1.120.0000.00815.72
7.1.110.0030.01015.61
7.1.100.0060.00315.94
7.1.90.0040.00415.80
7.1.80.0000.00815.49
7.1.70.0060.00516.45
7.1.60.0040.01117.50
7.1.50.0040.01316.23
7.1.40.0090.00615.86
7.1.30.0040.00815.69
7.1.20.0060.00315.81
7.1.10.0070.00815.54
7.1.00.0070.02218.97
7.0.330.0040.00715.07
7.0.320.0040.00415.33
7.0.310.0070.00715.51
7.0.300.0060.01015.41
7.0.290.0070.00715.39
7.0.280.0030.00715.08
7.0.270.0050.00315.46
7.0.260.0070.00315.01
7.0.250.0080.00315.24
7.0.240.0060.00315.39
7.0.230.0030.00915.43
7.0.220.0060.00615.50
7.0.210.0000.01115.51
7.0.200.0040.00316.20
7.0.190.0090.00315.53
7.0.180.0030.01015.63
7.0.170.0000.01115.54
7.0.160.0030.01015.31
7.0.150.0030.01215.49
7.0.140.0020.04218.75
7.0.130.0070.00715.06
7.0.120.0150.00315.33
7.0.110.0000.01515.45
7.0.100.0350.03717.65
7.0.90.0230.04417.71
7.0.80.0210.04217.64
7.0.70.0250.04417.72
7.0.60.0230.04117.68
7.0.50.0200.02317.90
7.0.40.0050.04816.74
7.0.30.0070.03216.71
7.0.20.0030.04216.74
7.0.10.0120.03516.68
7.0.00.0050.04416.85
5.6.400.0060.00914.38
5.6.390.0110.00314.41
5.6.380.0090.00314.40
5.6.370.0000.01014.42
5.6.360.0000.01114.62
5.6.350.0040.01114.06
5.6.340.0070.00714.63
5.6.330.0100.00014.50
5.6.320.0030.00914.53
5.6.310.0070.00314.57
5.6.300.0030.00614.23
5.6.290.0070.01014.60
5.6.280.0090.03917.70
5.6.270.0030.00614.51
5.6.260.0030.01014.36
5.6.250.0080.04317.60
5.6.240.0090.03217.50
5.6.230.0100.03717.47
5.6.220.0090.04217.40
5.6.210.0030.04717.47
5.6.200.0100.04017.64
5.6.190.0020.05017.79
5.6.180.0060.02317.70
5.6.170.0080.03717.63
5.6.160.0000.05117.67
5.6.150.0080.04117.72
5.6.140.0150.03817.77
5.6.130.0060.04617.83
5.6.120.0070.04517.79
5.6.110.0090.02717.85
5.6.100.0040.04917.77
5.6.90.0140.03717.80
5.6.80.0030.04317.44
5.6.70.0140.03517.35
5.6.60.0070.04317.35
5.6.50.0080.04317.27
5.6.40.0050.04517.32
5.6.30.0050.02817.32
5.6.20.0030.04717.43
5.6.10.0050.03417.29
5.6.00.0060.04017.33
5.5.380.0070.04217.41
5.5.370.0050.04317.51
5.5.360.0080.04217.33
5.5.350.0120.04017.29
5.5.340.0030.04517.62
5.5.330.0030.04717.45
5.5.320.0040.04717.70
5.5.310.0080.03217.71
5.5.300.0100.04117.70
5.5.290.0150.04017.54
5.5.280.0100.03817.45
5.5.270.0050.05017.69
5.5.260.0100.04017.53
5.5.250.0100.03817.39
5.5.240.0050.04517.32
5.5.230.0030.03317.10
5.5.220.0060.03817.20
5.5.210.0110.03017.28
5.5.200.0070.04217.23
5.5.190.0180.03317.26
5.5.180.0050.03017.05
5.5.170.0040.00714.11
5.5.160.0080.03817.30
5.5.150.0080.04017.31
5.5.140.0100.03817.24
5.5.130.0050.04517.30
5.5.120.0070.04317.34
5.5.110.0070.02717.35
5.5.100.0100.02017.20
5.5.90.0120.03717.16
5.5.80.0120.03717.02
5.5.70.0050.04217.13
5.5.60.0050.04417.21
5.5.50.0070.04317.23
5.5.40.0100.03817.23
5.5.30.0020.04017.29
5.5.20.0090.04417.07
5.5.10.0070.03917.10
5.5.00.0040.04717.22
5.4.450.0080.03615.86
5.4.440.0100.03815.85
5.4.430.0050.04415.78
5.4.420.0020.04615.83
5.4.410.0050.02315.72
5.4.400.0000.04615.64
5.4.390.0030.04515.53
5.4.380.0020.03015.59
5.4.370.0080.04015.67
5.4.360.0080.03515.74
5.4.350.0080.03715.64
5.4.340.0050.04315.62
5.4.330.0000.00812.25
5.4.320.0100.03315.53
5.4.310.0130.03315.69
5.4.300.0070.04015.63
5.4.290.0050.04215.74
5.4.280.0060.04315.67
5.4.270.0090.03815.66
5.4.260.0080.03615.64
5.4.250.0030.02915.51
5.4.240.0050.04215.68
5.4.230.0100.03515.61
5.4.220.0030.03015.59
5.4.210.0080.04415.60
5.4.200.0050.04015.63
5.4.190.0070.04215.64
5.4.180.0080.04015.59
5.4.170.0070.04015.64
5.4.160.0030.04215.57
5.4.150.0030.04415.69
5.4.140.0110.03614.30
5.4.130.0070.03514.30
5.4.120.0080.03514.30
5.4.110.0080.01814.28
5.4.100.0020.04414.35
5.4.90.0030.02614.30
5.4.80.0050.04014.23
5.4.70.0030.04014.22
5.4.60.0090.02814.33
5.4.50.0030.04014.31
5.4.40.0120.03214.35
5.4.30.0110.03014.22
5.4.20.0050.03814.24
5.4.10.0080.03314.22
5.4.00.0050.03913.99
5.3.290.0030.02813.38
5.3.280.0030.04413.33
5.3.270.0050.04113.42
5.3.260.0040.03613.35
5.3.250.0030.03013.42
5.3.240.0080.03513.35
5.3.230.0070.04013.35
5.3.220.0070.04013.40
5.3.210.0040.02813.33
5.3.200.0030.03813.41
5.3.190.0040.03813.32
5.3.180.0070.03213.34
5.3.170.0060.03613.36
5.3.160.0080.03813.33
5.3.150.0030.02913.36
5.3.140.0100.03813.38
5.3.130.0080.04013.40
5.3.120.0080.03513.31
5.3.110.0050.03413.31
5.3.100.0050.04113.21
5.3.90.0050.04013.21
5.3.80.0050.04013.21
5.3.70.0050.03713.21
5.3.60.0100.03113.21
5.3.50.0100.03213.21
5.3.40.0020.04113.21
5.3.30.0030.04013.21
5.3.20.0030.03613.21
5.3.10.0050.03813.21
5.3.00.0020.03813.21
5.2.170.0030.04314.18
5.2.160.0000.03714.18
5.2.150.0030.06314.18
5.2.140.0070.03714.18
5.2.130.0100.05714.18
5.2.120.0000.04014.18
5.2.110.0000.06314.18
5.2.100.0000.06314.18
5.2.90.0070.04714.18
5.2.80.0070.06014.18
5.2.70.0030.06714.18
5.2.60.0070.06014.18
5.2.50.0070.06014.18
5.2.40.0030.06314.18
5.2.30.0030.04314.18
5.2.20.0070.04714.18
5.2.10.0070.06014.18
5.2.00.0030.04014.18
5.1.60.0100.04314.18
5.1.50.0030.02714.18
5.1.40.0070.05314.18
5.1.30.0070.05314.18
5.1.20.0030.05714.18
5.1.10.0070.05014.18
5.1.00.0070.05314.18
5.0.50.0030.04714.18
5.0.40.0030.04314.18
5.0.30.0000.06314.18
5.0.20.0030.04314.18
5.0.10.0030.04314.18
5.0.00.0000.06714.18
4.4.90.0070.02714.18
4.4.80.0030.03314.18
4.4.70.0070.03314.18
4.4.60.0000.03714.18
4.4.50.0070.03014.18
4.4.40.0070.03014.18
4.4.30.0000.04014.18
4.4.20.0100.03014.18
4.4.10.0070.03314.18
4.4.00.0030.05314.18
4.3.110.0070.03014.18
4.3.100.0070.02714.18
4.3.90.0070.03014.18
4.3.80.0000.05014.18
4.3.70.0030.02314.18
4.3.60.0000.02014.18
4.3.50.0030.03314.18
4.3.40.0030.04714.18
4.3.30.0000.02314.18
4.3.20.0030.03014.18
4.3.10.0000.02314.18
4.3.00.0030.01714.18

preferences:
31.38 ms | 401 KiB | 5 Q