3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer\n"; var_dump(array( 1 => 1, '1' => '1', 's1' => 's1', )); echo "Booleans will be converted into an integer:\n"; var_dump(array( 0 => 0, 1 => 1, true => true, false => false, )); echo "NULL will be converted into an empty string:\n"; var_dump(array( '' => '', null => null, )); echo "A resource will be converted into an integer:\n"; var_dump(array( STDIN => 'STDIN', ));

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.0110.00718.96
8.3.30.0030.01019.07
8.3.20.0040.00420.21
8.3.10.0080.00023.61
8.3.00.0050.00320.95
8.2.170.0030.01222.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00320.73
8.2.110.0030.00622.09
8.2.100.0150.00017.78
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0000.00718.24
8.2.20.0000.00717.70
8.2.10.0040.00417.98
8.2.00.0040.00417.74
8.1.270.0080.00024.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.86
8.1.230.0040.00719.05
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0090.00017.22
8.1.180.0090.00018.10
8.1.170.0080.00018.57
8.1.160.0040.00421.99
8.1.150.0070.00018.64
8.1.140.0000.00717.48
8.1.130.0030.00317.82
8.1.120.0020.00517.50
8.1.110.0040.00417.33
8.1.100.0040.00417.29
8.1.90.0000.00817.45
8.1.80.0040.00417.48
8.1.70.0000.00717.33
8.1.60.0040.00417.46
8.1.50.0000.00817.35
8.1.40.0060.00317.45
8.1.30.0090.00017.64
8.1.20.0070.00317.50
8.1.10.0040.00417.41
8.1.00.0110.00617.46
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.29
8.0.270.0070.00017.18
8.0.260.0000.00617.31
8.0.250.0000.00716.83
8.0.240.0040.00416.86
8.0.230.0000.00716.94
8.0.220.0000.00716.93
8.0.210.0000.00716.86
8.0.200.0030.00316.88
8.0.190.0030.00316.85
8.0.180.0000.00716.91
8.0.170.0030.00616.89
8.0.160.0040.00416.83
8.0.150.0040.00416.72
8.0.140.0030.00316.75
8.0.130.0030.00313.25
8.0.120.0000.00816.84
8.0.110.0040.00416.86
8.0.100.0000.00717.00
8.0.90.0000.00716.97
8.0.80.0100.01216.77
8.0.70.0000.00716.77
8.0.60.0000.00716.73
8.0.50.0070.00016.91
8.0.30.0140.00517.12
8.0.20.0130.00917.40
8.0.10.0000.00717.07
8.0.00.0090.01016.75
7.4.330.0020.00215.07
7.4.320.0030.00316.41
7.4.300.0000.00616.57
7.4.290.0000.00716.41
7.4.280.0030.00616.47
7.4.270.0000.00716.36
7.4.260.0030.00616.32
7.4.250.0000.00716.40
7.4.240.0060.00116.47
7.4.230.0000.00716.32
7.4.220.0160.00816.49
7.4.210.0090.00916.46
7.4.200.0080.00016.29
7.4.160.0160.00016.26
7.4.150.0110.00817.40
7.4.140.0070.01117.86
7.4.130.0070.01016.57
7.4.120.0080.01416.49
7.4.110.0150.00616.25
7.4.100.0070.01116.28
7.4.90.0130.00316.45
7.4.80.0160.00619.39
7.4.70.0120.00916.63
7.4.60.0060.01416.42
7.4.50.0000.01016.60
7.4.40.0060.01016.42
7.4.30.0080.00816.62
7.4.00.0080.00814.80
7.3.330.0000.00513.01
7.3.320.0000.00512.98
7.3.310.0000.00716.26
7.3.300.0040.00416.28
7.3.290.0060.00916.20
7.3.280.0090.01016.24
7.3.270.0130.00317.40
7.3.260.0130.00716.21
7.3.250.0080.00816.36
7.3.240.0070.01316.33
7.3.230.0140.00316.39
7.3.210.0040.01516.24
7.3.200.0120.00419.39
7.3.190.0110.00716.43
7.3.180.0000.01516.27
7.3.170.0140.00716.27
7.3.160.0130.00516.34
7.3.120.0030.01314.78
7.3.110.0140.00414.65
7.3.100.0030.00814.61
7.3.90.0040.01114.52
7.3.80.0060.01015.07
7.3.70.0070.01014.88
7.3.60.0040.01214.87
7.3.50.0030.01014.40
7.3.40.0100.00314.91
7.3.30.0000.01514.88
7.3.20.0000.01316.64
7.3.10.0030.01016.71
7.3.00.0040.00416.67
7.2.330.0130.01216.41
7.2.320.0170.00916.45
7.2.310.0100.01316.62
7.2.300.0030.01316.38
7.2.290.0080.00816.48
7.2.240.0120.00314.80
7.2.230.0030.01214.57
7.2.220.0140.00414.66
7.2.210.0060.00914.80
7.2.200.0100.00614.91
7.2.190.0060.01014.70
7.2.180.0070.00715.02
7.2.170.0070.01014.86
7.2.160.0000.01414.60
7.2.150.0070.00716.72
7.2.140.0030.01416.86
7.2.130.0130.00316.81
7.2.120.0030.00616.72
7.2.110.0120.00516.52
7.2.100.0120.00316.77
7.2.90.0030.00916.93
7.2.80.0000.01216.84
7.2.70.0070.00316.96
7.2.60.0000.01416.89
7.2.50.0070.00716.85
7.2.40.0090.00016.88
7.2.30.0100.00316.95
7.2.20.0100.00716.58
7.2.10.0080.00416.82
7.2.00.0100.00716.93
7.1.330.0070.01015.96
7.1.320.0060.00915.81
7.1.310.0030.01315.36
7.1.300.0090.00315.72
7.1.290.0000.01215.66
7.1.280.0040.00815.54
7.1.270.0060.00615.63
7.1.260.0000.01515.64
7.1.250.0080.00615.46
7.1.100.0060.00617.86
7.1.70.0030.01217.07
7.1.60.0130.01319.70
7.1.50.0070.01416.61
7.1.00.0000.08022.30
7.0.200.0000.00816.48
7.0.140.0030.07322.09
7.0.100.0030.05019.88
7.0.90.0070.04719.88
7.0.80.0200.06019.94
7.0.70.0200.04019.90
7.0.60.0100.06719.97
7.0.50.0000.08720.36
7.0.40.0100.07720.18
7.0.30.0030.09020.05
7.0.20.0130.04720.11
7.0.10.0200.06320.18
7.0.00.0130.05720.07
5.6.280.0030.07321.15
5.6.250.0030.07720.49
5.6.240.0130.06720.54
5.6.230.0170.07020.54
5.6.220.0000.04720.66
5.6.210.0000.05020.57
5.6.200.0070.04721.04
5.6.190.0170.06321.04
5.6.180.0070.08320.92
5.6.170.0030.07320.99
5.6.160.0030.04321.08
5.6.150.0100.07320.95
5.6.140.0130.06720.93
5.6.130.0070.04321.00
5.6.120.0100.08321.05
5.6.110.0070.06021.00
5.6.100.0070.05020.97
5.6.90.0100.05321.10
5.6.80.0130.06320.47
5.6.70.0170.07020.42
5.6.60.0100.06720.32
5.6.50.0070.04020.51
5.6.40.0000.05020.40
5.6.30.0030.04020.39
5.6.20.0000.04320.36
5.6.10.0000.06020.48
5.6.00.0030.04320.29
5.5.380.0070.04320.39
5.5.370.0130.04020.42
5.5.360.0030.05320.42
5.5.350.0030.08020.47
5.5.340.0170.05720.93
5.5.330.0070.08020.64
5.5.320.0030.07720.89
5.5.310.0130.07720.63
5.5.300.0170.07320.91
5.5.290.0070.04020.91
5.5.280.0100.05720.77
5.5.270.0130.08020.84
5.5.260.0070.05320.74
5.5.250.0030.06320.69
5.5.240.0100.05720.30
5.5.230.0100.08320.25
5.5.220.0070.04020.27
5.5.210.0030.04320.13
5.5.200.0130.03320.18
5.5.190.0030.05320.26
5.5.180.0000.04020.26
5.5.160.0070.03720.11
5.5.150.0030.04020.14
5.5.140.0070.03720.24
5.5.130.0030.07720.17
5.5.120.0070.03320.14
5.5.110.0000.08019.97
5.5.100.0100.04020.07
5.5.90.0030.04020.06
5.5.80.0070.04319.93
5.5.70.0100.03320.14
5.5.60.0070.03320.05
5.5.50.0030.04020.05
5.5.40.0030.03720.14
5.5.30.0130.03320.10
5.5.20.0070.03720.04
5.5.10.0070.03720.02
5.5.00.0000.05320.04
5.4.450.0100.06319.47
5.4.440.0070.08319.23
5.4.430.0170.07019.26
5.4.420.0100.06719.44
5.4.410.0100.07319.14
5.4.400.0130.07718.97
5.4.390.0000.05319.05
5.4.380.0070.04318.90
5.4.370.0030.04018.96
5.4.360.0100.03319.10
5.4.350.0070.05719.05
5.4.340.0030.03719.05
5.4.320.0030.04018.85
5.4.310.0130.05018.82
5.4.300.0030.06319.12
5.4.290.0030.05718.78
5.4.280.0030.04019.14
5.4.270.0100.07319.05
5.4.260.0070.03719.09
5.4.250.0070.03318.80
5.4.240.0030.03719.02
5.4.230.0030.03719.21
5.4.220.0100.05019.05
5.4.210.0070.04319.05
5.4.200.0070.03319.22
5.4.190.0000.04019.02
5.4.180.0030.04019.11
5.4.170.0070.03319.06
5.4.160.0030.04019.00
5.4.150.0000.04019.12
5.4.140.0070.03316.28
5.4.130.0030.03316.27
5.4.120.0030.03716.32
5.4.110.0070.03716.38
5.4.100.0070.03716.28
5.4.90.0000.04016.42
5.4.80.0030.03716.38
5.4.70.0000.04716.19
5.4.60.0070.03716.28
5.4.50.0000.03716.18
5.4.40.0030.03316.46
5.4.30.0030.03716.18
5.4.20.0070.02716.29
5.4.10.0070.02716.30
5.4.00.0030.02715.72
5.3.290.0030.03714.57
5.3.280.0000.04014.55
5.3.270.0000.05014.46
5.3.260.0000.04314.58
5.3.250.0030.04014.57
5.3.240.0070.05714.61
5.3.230.0070.03314.60
5.3.220.0030.03714.42
5.3.210.0000.04314.42
5.3.200.0030.03314.52
5.3.190.0000.03714.42
5.3.180.0070.03314.56
5.3.170.0030.03714.42
5.3.160.0100.04314.42
5.3.150.0030.03014.50
5.3.140.0000.03314.50
5.3.130.0000.04714.41
5.3.120.0000.04014.38
5.3.110.0030.04714.45
5.3.100.0030.05313.86
5.3.90.0000.03313.97
5.3.80.0070.03713.87
5.3.70.0070.02713.87
5.3.60.0000.03713.98
5.3.50.0130.05013.80
5.3.40.0070.07713.93
5.3.30.0170.02713.87
5.3.20.0170.06013.63
5.3.10.0070.07313.63
5.3.00.0000.08713.64
5.2.170.0070.06013.24
5.2.160.0100.05313.24
5.2.150.0070.06313.24
5.2.140.0130.04713.24
5.2.130.0030.06313.24
5.2.120.0070.03013.24
5.2.110.0030.05313.24
5.2.100.0030.05713.24
5.2.90.0000.03713.24
5.2.80.0030.06013.24
5.2.70.0130.05313.24
5.2.60.0070.03713.24
5.2.50.0030.04713.24
5.2.40.0100.02713.24
5.2.30.0030.06713.24
5.2.20.0070.04313.24
5.2.10.0070.05313.24
5.2.00.0070.05713.24
5.1.60.0000.05013.24
5.1.50.0030.04713.24
5.1.40.0070.05013.24
5.1.30.0000.06013.24
5.1.20.0130.04713.24
5.1.10.0070.04713.24
5.1.00.0030.03313.24
5.0.50.0070.04313.24
5.0.40.0030.05013.24
5.0.30.0030.06013.24
5.0.20.0070.03313.24
5.0.10.0030.04013.24
5.0.00.0030.04313.24
4.4.90.0070.03313.24
4.4.80.0070.03013.24
4.4.70.0070.03313.24
4.4.60.0030.03713.24
4.4.50.0000.04313.24
4.4.40.0000.04713.24
4.4.30.0000.03313.24
4.4.20.0000.03713.24
4.4.10.0070.02713.24
4.4.00.0000.06313.24
4.3.110.0070.03313.24
4.3.100.0070.02713.24
4.3.90.0030.03713.24
4.3.80.0070.05013.24
4.3.70.0070.02713.24
4.3.60.0030.02313.24
4.3.50.0030.02713.24
4.3.40.0030.04313.24
4.3.30.0000.03713.24
4.3.20.0030.03013.24
4.3.10.0030.01713.24
4.3.00.0030.02013.24

preferences:
41.05 ms | 400 KiB | 5 Q