3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer:\n"; var_dump(array( 'n-n' => -1, 1 => 1, '1' => '1', '-1' => '-1', '1.1' => '1.1', 's1' => 's1', )); echo "Floating point numbers will be converted into an integer:\n"; var_dump(array( -1 => -1, 0 => 0, 1 => 1, -1.9 => -1.9, 0.9 => 0.9, 1.9 => 1.9 )); 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, ));

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.70.0090.00916.75
8.3.60.0130.00718.42
8.3.50.0080.01321.99
8.3.40.0040.01218.79
8.3.30.0030.01020.08
8.3.20.0000.00818.77
8.3.10.0040.00420.90
8.3.00.0050.00319.79
8.2.180.0140.00416.63
8.2.170.0210.00322.96
8.2.160.0140.00020.38
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.14
8.2.110.0050.00520.52
8.2.100.0080.00417.79
8.2.90.0050.00318.28
8.2.80.0000.00819.41
8.2.70.0050.00517.34
8.2.60.0050.00318.03
8.2.50.0040.00418.07
8.2.40.0050.00319.66
8.2.30.0000.00919.43
8.2.20.0040.00417.64
8.2.10.0050.00217.62
8.2.00.0080.00017.62
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00922.19
8.1.230.0110.00020.87
8.1.220.0030.00617.74
8.1.210.0060.00318.89
8.1.200.0030.00617.25
8.1.190.0030.00517.28
8.1.180.0000.00818.10
8.1.170.0080.00018.43
8.1.160.0040.00418.64
8.1.150.0040.00418.45
8.1.140.0070.00017.37
8.1.130.0030.00417.77
8.1.120.0000.00717.30
8.1.110.0000.00817.30
8.1.100.0040.00417.34
8.1.90.0030.00417.36
8.1.80.0030.00317.26
8.1.70.0040.00417.35
8.1.60.0000.00917.47
8.1.50.0040.00417.34
8.1.40.0040.00417.47
8.1.30.0000.00917.50
8.1.20.0000.00817.43
8.1.10.0000.00717.50
8.1.00.0090.00017.43
8.0.300.0070.00020.07
8.0.290.0040.00417.03
8.0.280.0000.00718.32
8.0.270.0070.00017.15
8.0.260.0070.00016.80
8.0.250.0000.00716.88
8.0.240.0030.00516.71
8.0.230.0070.00016.82
8.0.220.0030.00316.66
8.0.210.0000.00716.61
8.0.200.0000.00616.87
8.0.190.0070.00016.80
8.0.180.0080.00016.77
8.0.170.0040.00416.72
8.0.160.0080.00016.75
8.0.150.0070.00016.79
8.0.140.0030.00316.79
8.0.130.0030.00313.26
8.0.120.0040.00416.61
8.0.110.0000.00716.73
8.0.100.0050.00216.83
8.0.90.0040.00416.70
8.0.80.0090.00916.73
8.0.70.0030.00516.64
8.0.60.0070.00016.64
8.0.50.0000.00716.71
8.0.30.0160.00816.80
8.0.20.0110.00817.40
8.0.10.0070.00016.76
8.0.00.0150.00816.54
7.4.330.0020.00216.79
7.4.320.0000.00616.47
7.4.300.0000.00716.37
7.4.290.0030.00316.43
7.4.280.0030.00316.45
7.4.270.0030.00316.30
7.4.260.0000.00513.19
7.4.250.0000.00816.27
7.4.240.0040.00416.52
7.4.230.0000.00716.29
7.4.220.0130.00316.36
7.4.210.0110.00716.38
7.4.200.0000.00816.29
7.4.190.0030.00316.54
7.4.160.0100.00616.30
7.4.150.0100.01017.40
7.4.140.0160.00517.86
7.4.130.0090.00916.49
7.4.120.0120.00516.42
7.4.110.0130.01016.49
7.4.100.0000.01716.54
7.4.90.0100.00916.45
7.4.80.0100.01019.39
7.4.70.0130.00316.30
7.4.60.0070.01416.37
7.4.50.0000.00916.38
7.4.40.0110.00622.77
7.4.30.0140.00316.58
7.4.00.0030.01514.73
7.3.330.0000.00613.07
7.3.320.0030.00312.94
7.3.310.0030.00316.07
7.3.300.0030.00316.12
7.3.290.0060.00916.19
7.3.280.0070.00916.19
7.3.270.0120.00617.40
7.3.260.0100.00918.24
7.3.250.0110.00616.21
7.3.240.0120.00416.11
7.3.230.0110.00716.39
7.3.210.0060.01216.42
7.3.200.0080.01119.39
7.3.190.0140.00816.15
7.3.180.0120.00316.05
7.3.170.0120.00616.27
7.3.160.0030.01316.15
7.3.120.0080.00814.96
7.2.330.0130.00716.57
7.2.320.0030.01416.23
7.2.310.0130.01016.59
7.2.300.0070.01116.37
7.2.290.0130.00716.51
7.2.00.0040.00719.02
7.1.200.0060.00615.44
7.1.100.0040.00818.10
7.1.70.0040.00417.33
7.1.60.0100.00317.33
7.1.50.0000.01017.33
7.1.40.0060.00617.33
7.1.30.0050.00517.33
7.1.20.0030.01417.33
7.1.10.0080.00017.33
7.1.00.0090.00317.33
7.0.200.0090.00017.33
7.0.190.0040.00417.33
7.0.180.0030.00717.33
7.0.170.0060.01017.33
7.0.160.0000.01117.33
7.0.150.0000.00817.33
7.0.140.0000.00917.33
7.0.130.0050.00517.33
7.0.120.0030.00817.33
7.0.110.0040.00717.33
7.0.100.0020.00917.33
7.0.90.0000.00917.33
7.0.80.0000.00817.33
7.0.70.0030.00917.33
7.0.60.0000.01017.33
7.0.50.0050.00517.33
7.0.40.0030.00717.33
7.0.30.0000.00917.33
7.0.20.0080.00417.33
7.0.10.0090.00017.33
7.0.00.0080.00317.33
5.6.300.0030.04221.00
5.6.290.0030.04420.80
5.6.280.0100.04820.87
5.6.270.0070.04920.97
5.6.260.0070.04020.97
5.6.250.0000.04721.06
5.6.240.0240.04720.84
5.6.230.0100.04020.85
5.6.220.0070.04521.03
5.6.210.0070.04021.08
5.6.200.0280.03820.86
5.6.190.0030.04520.86
5.6.180.0000.04420.98
5.6.170.0000.04521.04
5.6.160.0000.04420.86
5.6.150.0230.04420.93
5.6.140.0060.04821.01
5.6.130.0030.05120.74
5.6.120.0060.03820.72
5.6.110.0030.04320.94
5.6.100.0040.06420.91
5.6.90.0030.05620.80
5.6.80.0000.05120.25
5.6.70.0040.04320.13
5.6.60.0100.04520.23
5.6.50.0230.03620.22
5.6.40.0000.05320.36
5.6.30.0040.04220.28
5.6.20.0000.04420.29
5.6.10.0030.04520.30
5.6.00.0270.04420.17
5.5.380.0000.04217.46
5.5.370.0070.04017.61
5.5.360.0000.05917.61
5.5.350.0100.04617.46
5.5.340.0030.04217.71
5.5.330.0000.04418.07
5.5.320.0030.04718.12
5.5.310.0030.04318.05
5.5.300.0000.04717.70
5.5.290.0070.04017.97
5.5.280.0130.05017.86
5.5.270.0030.04617.94
5.5.260.0030.08217.83
5.5.250.0000.07617.84
5.5.240.0070.04917.41
5.5.230.0000.04417.33
5.5.220.0030.03617.43
5.5.210.0030.05317.33
5.5.200.0000.04317.33
5.5.190.0100.03517.38
5.5.180.0060.03817.37
5.5.160.0030.04517.39
5.5.150.0070.04017.41
5.5.140.0030.06017.33
5.5.130.0030.04217.33
5.5.120.0030.04017.43
5.5.110.0000.04317.34
5.5.100.0070.04017.33
5.5.90.0070.03617.33
5.5.80.0040.04217.36
5.5.70.0000.05517.33
5.5.60.0030.06017.33
5.5.50.0060.03517.33
5.5.40.0030.04117.33
5.5.30.0030.03817.33
5.5.20.0000.04417.33
5.5.10.0030.03817.33
5.5.00.0030.03717.33
5.4.450.0030.04619.33
5.4.440.0070.03619.38
5.4.430.0100.07319.39
5.4.420.0030.03819.38
5.4.410.0000.04519.36
5.4.400.0070.03719.04
5.4.390.0030.04418.98
5.4.380.0060.04118.91
5.4.370.0000.04518.98
5.4.360.0000.04118.88
5.4.350.0030.03918.85
5.4.340.0030.03718.88
5.4.320.0030.04419.16
5.4.310.0060.03519.07
5.4.300.0000.05019.17
5.4.290.0070.03719.08
5.4.280.0030.04718.88
5.4.270.0060.03519.08
5.4.260.0070.03919.17
5.4.250.0100.03218.97
5.4.240.0000.04418.91
5.4.230.0030.04019.13
5.4.220.0060.04419.11
5.4.210.0070.03619.05
5.4.200.0100.03318.80
5.4.190.0030.04119.07
5.4.180.0000.04119.04
5.4.170.0030.04619.09
5.4.160.0070.03619.12
5.4.150.0030.04019.04
5.4.140.0190.04517.33
5.4.130.0070.03417.33
5.4.120.0040.03617.33
5.4.110.0170.02717.33
5.4.100.0030.03617.33
5.4.90.0000.03817.33
5.4.80.0000.05017.33
5.4.70.0030.03317.33
5.4.60.0030.03317.33
5.4.50.0060.03817.33
5.4.40.0030.03417.33
5.4.30.0000.04017.33
5.4.20.0170.03317.33
5.4.10.0000.03917.33
5.4.00.0030.03317.33
5.3.290.0030.03817.33
5.3.280.0000.06517.33
5.3.270.0030.03817.33
5.3.260.0100.05017.33
5.3.250.0030.03817.33
5.3.240.0060.03517.33
5.3.230.0000.03917.33
5.3.220.0070.04017.33
5.3.210.0060.03517.33
5.3.200.0030.03917.33
5.3.190.0030.03717.33
5.3.180.0000.04217.33
5.3.170.0030.04217.33
5.3.160.0030.03617.33
5.3.150.0030.03717.33
5.3.140.0000.03817.33
5.3.130.0230.04017.33
5.3.120.0030.04817.33
5.3.110.0000.04017.33
5.3.100.0030.05517.33
5.3.90.0000.03917.33
5.3.80.0030.03717.33
5.3.70.0030.03917.33
5.3.60.0070.03417.33
5.3.50.0100.02817.33
5.3.40.0030.03717.33
5.3.30.0070.04117.33
5.3.20.0130.02817.33
5.3.10.0030.03617.33
5.3.00.0030.04317.33
5.2.170.0030.03217.33
5.2.160.0000.05017.33
5.2.150.0030.02817.33
5.2.140.0200.03017.33
5.2.130.0040.03517.33
5.2.120.0170.02717.33
5.2.110.0070.02317.33
5.2.100.0000.03117.33
5.2.90.0030.03417.33
5.2.80.0030.02817.33
5.2.70.0030.02717.33
5.2.60.0000.03517.33
5.2.50.0040.02817.33
5.2.40.0030.02917.33
5.2.30.0030.02817.33
5.2.20.0070.02717.33
5.2.10.0000.03317.33
5.2.00.0000.03217.33
5.1.60.0060.03217.33
5.1.50.0040.04217.33
5.1.40.0030.02417.33
5.1.30.0030.03017.33
5.1.20.0100.01917.33
5.1.10.0030.02317.33
5.1.00.0000.02617.33
5.0.50.0000.02417.33
5.0.40.0040.01817.33
5.0.30.0030.03317.33
5.0.20.0060.01917.33
5.0.10.0000.02317.33
5.0.00.0000.03317.33
4.4.90.0000.02017.33
4.4.80.0000.01717.33
4.4.70.0030.01517.33
4.4.60.0000.01717.33
4.4.50.0000.01717.33
4.4.40.0000.02717.33
4.4.30.0000.01917.33
4.4.20.0000.01917.33
4.4.10.0040.01917.33
4.4.00.0000.02517.33
4.3.110.0000.01917.33
4.3.100.0030.01317.33
4.3.90.0000.02217.33
4.3.80.0000.02817.33
4.3.70.0070.01717.33
4.3.60.0000.01917.33
4.3.50.0060.01517.33
4.3.40.0070.02317.33
4.3.30.0060.02217.33
4.3.20.0030.01317.33
4.3.10.0060.01617.33
4.3.00.0000.02817.33

preferences:
36.54 ms | 401 KiB | 5 Q