3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo var_export(20 / 3 * 1e6, true) . "\n"; echo var_export(6.66, true) . "\n"; echo var_export(6.0, true) . "\n"; function format($f) { return rtrim(rtrim(number_format($f, ini_get('precision'), '.', ''), '0.'), '.'); } echo format(20/3) . "\n"; echo format(200000000 / 3) . "\n"; echo 200000000 / 3 . "\n"; echo format(6.66) . "\n"; echo format(6.0) . "\n"; echo format(60.0) . "\n";

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.60.0000.01818.18
8.3.50.0050.01121.27
8.3.40.0110.00418.67
8.3.30.0030.01020.34
8.3.20.0030.00620.53
8.3.10.0080.00021.14
8.3.00.0040.00423.70
8.2.180.0110.01116.32
8.2.170.0070.01022.96
8.2.160.0110.00320.54
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.16
8.2.110.0060.00319.21
8.2.100.0080.00317.84
8.2.90.0060.00319.22
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0030.00518.04
8.2.50.0070.00318.07
8.2.40.0030.00618.03
8.2.30.0030.00319.54
8.2.20.0000.00717.65
8.2.10.0090.00017.64
8.2.00.0000.00817.49
8.1.280.0110.01125.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00620.80
8.1.230.0040.00820.99
8.1.220.0000.00818.77
8.1.210.0060.00318.97
8.1.200.0000.00917.13
8.1.190.0050.00317.52
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0000.00718.89
8.1.150.0040.00418.66
8.1.140.0040.00417.50
8.1.130.0030.00317.81
8.1.120.0050.00217.36
8.1.110.0030.00817.35
8.1.100.0000.00717.45
8.1.90.0040.00417.45
8.1.80.0020.00517.50
8.1.70.0000.00717.35
8.1.60.0030.00617.55
8.1.50.0000.00817.54
8.1.40.0060.00317.60
8.1.30.0040.00417.57
8.1.20.0000.00817.49
8.1.10.0030.00517.45
8.1.00.0030.00617.49
8.0.300.0000.00719.96
8.0.290.0030.00317.18
8.0.280.0000.00718.45
8.0.270.0000.00717.18
8.0.260.0030.00316.75
8.0.250.0040.00416.92
8.0.240.0040.00416.99
8.0.230.0090.00016.99
8.0.220.0030.00316.90
8.0.210.0030.00316.77
8.0.200.0030.00317.02
8.0.190.0050.00216.86
8.0.180.0000.00816.89
8.0.170.0050.00316.85
8.0.160.0070.00016.89
8.0.150.0080.00016.73
8.0.140.0020.00516.84
8.0.130.0000.00513.36
8.0.120.0040.00416.73
8.0.110.0020.00516.74
8.0.100.0040.00416.74
8.0.90.0050.00316.84
8.0.80.0110.00416.84
8.0.70.0000.00716.95
8.0.60.0050.00216.72
8.0.50.0070.00016.64
8.0.30.0100.00917.17
8.0.20.0170.00217.40
8.0.10.0000.00816.99
8.0.00.0100.00916.90
7.4.330.0000.00616.89
7.4.320.0030.00316.44
7.4.300.0000.00616.51
7.4.290.0040.00416.57
7.4.280.0000.00716.48
7.4.270.0000.00616.43
7.4.260.0030.00313.34
7.4.250.0040.00416.55
7.4.240.0030.00316.55
7.4.230.0000.00716.49
7.4.220.0100.00716.61
7.4.210.0100.01016.56
7.4.200.0040.00416.30
7.4.190.0040.00416.73
7.4.160.0110.00516.71
7.4.150.0090.00917.40
7.4.140.0110.00617.86
7.4.130.0120.00616.45
7.4.120.0100.00716.58
7.4.110.0070.01016.36
7.4.100.0190.00516.41
7.4.90.0060.01216.53
7.4.80.0080.00819.39
7.4.70.0140.00716.52
7.4.60.0120.00616.65
7.4.50.0030.00616.36
7.4.40.0060.00922.77
7.4.30.0040.01316.60
7.4.00.0030.01014.48
7.3.330.0030.00313.21
7.3.320.0000.00613.37
7.3.310.0030.00316.30
7.3.300.0070.00016.31
7.3.290.0030.01016.22
7.3.280.0090.00916.29
7.3.270.0070.01117.40
7.3.260.0090.01218.24
7.3.250.0110.00616.45
7.3.240.0080.00816.25
7.3.230.0130.00616.39
7.3.210.0030.01316.61
7.3.200.0150.00419.39
7.3.190.0120.00616.64
7.3.180.0050.01116.60
7.3.170.0120.00416.43
7.3.160.0100.00616.52
7.3.120.0040.01214.75
7.3.10.0070.01016.45
7.3.00.0060.00916.58
7.2.330.0090.00916.79
7.2.320.0120.00616.63
7.2.310.0110.01116.54
7.2.300.0060.01116.31
7.2.290.0060.00916.56
7.2.130.0100.00316.77
7.2.120.0060.00916.70
7.2.110.0070.00316.88
7.2.100.0090.00916.88
7.2.90.0070.01016.80
7.2.80.0030.01016.81
7.2.70.0030.01516.62
7.2.60.0070.00916.59
7.2.50.0100.00317.06
7.2.40.0030.01016.84
7.2.30.0070.00316.87
7.2.20.0090.00616.94
7.2.10.0000.01316.83
7.2.00.0080.00518.08
7.1.250.0040.01115.53
7.1.200.0090.00615.48
7.1.70.0000.00817.07
7.1.60.0000.01116.75
7.1.50.0030.00716.61
7.1.40.0100.00716.48
7.1.30.0070.00416.46
7.1.20.0060.00616.92
7.1.10.0000.01116.54
7.1.00.0000.00816.57
7.0.200.0070.00016.41
7.0.190.0000.00716.54
7.0.180.0040.00716.10
7.0.170.0080.00416.11
7.0.160.0040.00816.10
7.0.150.0030.01016.34
7.0.140.0050.00516.30
7.0.130.0110.00316.34
7.0.120.0030.00516.41
7.0.110.0040.00416.32
7.0.100.0000.01116.42
7.0.90.0030.00616.35
7.0.80.0030.00516.31
7.0.70.0040.00416.19
7.0.60.0000.00816.15
7.0.50.0020.00516.18
7.0.40.0040.00415.17
7.0.30.0040.00415.17
7.0.20.0000.00915.17
7.0.10.0000.00915.17
7.0.00.0030.01215.17
5.6.300.0000.06120.59
5.6.290.0100.04820.82
5.6.280.0070.03721.08
5.6.270.0000.04521.09
5.6.260.0060.03820.89
5.6.250.0100.04921.01
5.6.240.0070.04821.05
5.6.230.0000.04720.96
5.6.220.0030.05520.87
5.6.210.0000.04721.09
5.6.200.0210.04520.84
5.6.190.0000.04821.04
5.6.180.0100.04120.94
5.6.170.0030.04220.93
5.6.160.0030.08120.93
5.6.150.0100.04320.84
5.6.140.0000.04820.82
5.6.130.0000.04321.05
5.6.120.0100.03921.03
5.6.110.0030.04320.98
5.6.100.0030.04420.73
5.6.90.0070.03620.92
5.6.80.0030.03820.42
5.6.70.0030.03820.30
5.6.60.0100.03320.22
5.6.50.0000.05720.21
5.6.40.0070.04020.35
5.6.30.0030.03820.29
5.6.20.0000.04520.31
5.6.10.0130.04920.36
5.6.00.0030.07020.32
5.5.380.0140.04517.52
5.5.370.0060.03917.55
5.5.360.0000.09117.56
5.5.350.0060.04117.53
5.5.340.0000.04518.02
5.5.330.0030.04118.06
5.5.320.0000.04618.02
5.5.310.0000.06718.06
5.5.300.0000.04618.07
5.5.290.0030.05217.70
5.5.280.0040.03917.86
5.5.270.0030.04817.69
5.5.260.0030.04118.11
5.5.250.0030.04817.89
5.5.240.0030.03617.48
5.5.230.0030.03917.46
5.5.220.0060.03517.43
5.5.210.0000.04317.46
5.5.200.0000.04117.48
5.5.190.0030.03917.35
5.5.180.0030.04317.44
5.5.160.0070.03417.45
5.5.150.0000.04217.37
5.5.140.0000.04017.47
5.5.130.0000.04117.41
5.5.120.0000.04217.52
5.5.110.0030.04617.45
5.5.100.0030.04017.33
5.5.90.0030.03716.99
5.5.80.0030.03917.37
5.5.70.0030.03617.11
5.5.60.0000.03917.26
5.5.50.0030.04417.25
5.5.40.0070.03317.41
5.5.30.0030.06717.07
5.5.20.0030.04417.24
5.5.10.0060.05117.41
5.5.00.0040.03917.23
5.4.450.0060.03619.50
5.4.440.0070.03919.38
5.4.430.0000.04319.48
5.4.420.0030.04819.48
5.4.410.0030.03619.38
5.4.400.0000.04218.98
5.4.390.0040.03919.20
5.4.380.0030.03819.05
5.4.370.0060.03819.01
5.4.360.0060.03419.21
5.4.350.0060.03619.20
5.4.340.0100.03219.16
5.4.320.0030.04419.13
5.4.310.0000.04619.20
5.4.300.0000.04319.12
5.4.290.0000.03919.18
5.4.280.0000.04219.18
5.4.270.0100.07119.13
5.4.260.0100.03319.04
5.4.250.0000.03919.11
5.4.240.0030.03818.96
5.4.230.0030.03818.97
5.4.220.0030.03919.00
5.4.210.0060.04219.17
5.4.200.0000.04319.23
5.4.190.0030.04019.07
5.4.180.0000.03919.12
5.4.170.0070.04019.19
5.4.160.0100.06719.13
5.4.150.0070.03819.02
5.4.140.0030.04316.52
5.4.130.0030.04016.66
5.4.120.0030.03616.69
5.4.110.0000.03816.76
5.4.100.0070.06816.47
5.4.90.0030.06416.74
5.4.80.0100.03316.68
5.4.70.0030.04616.59
5.4.60.0030.04516.53
5.4.50.0030.04216.67
5.4.40.0070.04716.80
5.4.30.0000.07616.59
5.4.20.0030.08016.59
5.4.10.0070.05916.66
5.4.00.0100.07015.90
5.3.290.0070.03615.17
5.3.280.0070.03315.17
5.3.270.0030.04815.17
5.3.260.0090.03815.17
5.3.250.0030.03915.17
5.3.240.0060.03515.17
5.3.230.0030.04015.17
5.3.220.0000.03815.17
5.3.210.0070.07315.17
5.3.200.0000.04815.17
5.3.190.0030.04815.17
5.3.180.0060.03515.17
5.3.170.0030.05815.17
5.3.160.0060.03515.17
5.3.150.0070.03015.17
5.3.140.0030.03615.17
5.3.130.0060.07815.17
5.3.120.0000.05115.17
5.3.110.0000.06315.17
5.3.100.0030.08515.17
5.3.90.0030.05015.17
5.3.80.0030.03415.17
5.3.70.0030.03415.17
5.3.60.0000.06315.17
5.3.50.0000.04415.17
5.3.40.0030.03815.17
5.3.30.0040.03915.17
5.3.20.0030.03315.17
5.3.10.0030.03715.17
5.3.00.0070.03315.17
5.2.170.0000.03415.17
5.2.160.0090.02815.17
5.2.150.0030.03715.17
5.2.140.0000.03115.17
5.2.130.0130.02515.17
5.2.120.0030.03115.17
5.2.110.0040.03215.17
5.2.100.0000.03515.17
5.2.90.0000.03115.17
5.2.80.0000.03215.17
5.2.70.0030.06015.17
5.2.60.0030.05715.17
5.2.50.0070.02715.17
5.2.40.0030.02715.17
5.2.30.0060.02815.17
5.2.20.0000.03115.17
5.2.10.0040.02815.17
5.2.00.0000.03515.17
5.1.60.0000.02915.17
5.1.50.0030.02615.17
5.1.40.0070.02415.17
5.1.30.0000.02915.17
5.1.20.0040.02515.17
5.1.10.0030.02715.17
5.1.00.0030.02615.17
5.0.50.0000.02315.17
5.0.40.0070.01715.17
5.0.30.0060.02815.17
5.0.20.0030.01915.17
5.0.10.0090.01515.17
5.0.00.0000.03115.17
4.4.90.0030.03515.17
4.4.80.0030.01515.17
4.4.70.0000.01815.17
4.4.60.0030.02215.17
4.4.50.0060.03215.17
4.4.40.0070.04315.17
4.4.30.0030.01615.17
4.4.20.0000.01815.17
4.4.10.0030.01315.17
4.4.00.0030.02415.17
4.3.110.0000.01615.17
4.3.100.0000.01615.17
4.3.90.0030.01315.17
4.3.80.0030.05215.17
4.3.70.0040.03515.17
4.3.60.0000.01815.17
4.3.50.0070.01815.17
4.3.40.0030.02415.17
4.3.30.0030.03315.17
4.3.20.0000.02315.17
4.3.10.0000.01715.17
4.3.00.0060.01215.17

preferences:
45.14 ms | 401 KiB | 5 Q