3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Bar { } class Foo { public function getBar(int $teste) { var_dump($teste); } } $foo = new Foo(); var_dump($foo->getBar(50.0));

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.0000.01416.47
8.3.60.0090.00616.48
8.3.50.0140.00721.14
8.3.40.0150.00018.79
8.3.30.0040.01118.71
8.3.20.0070.00020.34
8.3.10.0050.00323.66
8.3.00.0030.00617.99
8.2.190.0180.00018.53
8.2.180.0090.00616.88
8.2.170.0070.01022.96
8.2.160.0180.00020.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0090.00017.63
8.2.110.0040.00720.93
8.2.100.0080.00317.78
8.2.90.0000.00819.09
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.55
8.2.50.0060.00318.07
8.2.40.0080.00019.47
8.2.30.0070.00018.09
8.2.20.0050.00317.74
8.2.10.0040.00417.97
8.2.00.0040.00417.96
8.1.280.0000.01525.92
8.1.270.0120.00620.30
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.09
8.1.230.0040.00718.84
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00916.99
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0000.00722.01
8.1.150.0000.00718.78
8.1.140.0000.00817.43
8.1.130.0080.00018.70
8.1.120.0040.00417.41
8.1.110.0000.00717.29
8.1.100.0000.00717.39
8.1.90.0050.00217.27
8.1.80.0040.00417.29
8.1.70.0000.00717.34
8.1.60.0050.00317.62
8.1.50.0030.00517.43
8.1.40.0000.00817.55
8.1.30.0000.00917.53
8.1.20.0040.00417.61
8.1.10.0030.00717.49
8.1.00.0000.00817.50
8.0.300.0050.00320.25
8.0.290.0000.00716.75
8.0.280.0050.00318.38
8.0.270.0050.00217.10
8.0.260.0030.00318.47
8.0.250.0040.00416.95
8.0.240.0050.00216.97
8.0.230.0080.00316.97
8.0.220.0020.00516.87
8.0.210.0080.00016.78
8.0.200.0040.00416.84
8.0.190.0040.00416.98
8.0.180.0000.00916.79
8.0.170.0000.00816.88
8.0.160.0030.00316.96
8.0.150.0000.00716.84
8.0.140.0070.00016.74
8.0.130.0000.00613.33
8.0.120.0040.00416.79
8.0.110.0050.00216.95
8.0.100.0040.00416.82
8.0.90.0070.00016.85
8.0.80.0090.00616.89
8.0.70.0050.00316.72
8.0.60.0040.00416.92
8.0.50.0070.00016.77
8.0.30.0060.01017.29
8.0.20.0110.00817.40
8.0.10.0000.00816.95
8.0.00.0140.00417.02
7.4.330.0000.00515.08
7.4.320.0060.00016.32
7.4.300.0030.00316.58
7.4.290.0070.00016.62
7.4.280.0000.00816.50
7.4.270.0040.00416.52
7.4.260.0030.00316.38
7.4.250.0040.00416.44
7.4.240.0020.00516.46
7.4.230.0030.00316.68
7.4.220.0070.01716.66
7.4.210.0090.00616.51
7.4.200.0000.00716.43
7.4.160.0150.00016.54
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0090.01216.50
7.4.120.0130.00716.46
7.4.110.0170.00616.63
7.4.100.0080.00816.57
7.4.90.0100.00716.46
7.4.80.0030.01519.39
7.4.70.0080.00816.54
7.4.60.0070.01016.64
7.4.50.0040.00416.18
7.4.40.0120.00616.62
7.4.30.0060.01516.66
7.4.10.0080.00614.71
7.4.00.0020.01514.85
7.3.330.0000.00613.19
7.3.320.0020.00213.39
7.3.310.0000.00816.41
7.3.300.0070.00016.24
7.3.290.0000.00716.21
7.3.280.0060.01116.35
7.3.270.0230.00317.40
7.3.260.0120.00816.38
7.3.250.0130.00416.45
7.3.240.0160.00616.48
7.3.230.0060.01216.39
7.3.210.0030.01416.43
7.3.200.0090.00916.34
7.3.190.0120.00416.46
7.3.180.0090.00616.23
7.3.170.0100.00616.33
7.3.160.0090.00916.29
7.3.130.0070.00714.82
7.3.120.0050.01114.86
7.3.110.0050.01214.71
7.3.100.0060.00914.93
7.3.90.0060.00614.83
7.3.80.0050.01114.76
7.3.70.0060.00614.85
7.3.60.0050.00814.78
7.3.50.0080.00514.93
7.3.40.0050.00614.86
7.3.30.0050.00714.71
7.3.20.0070.00716.53
7.3.10.0070.00716.41
7.3.00.0110.00316.50
7.2.330.0090.00916.52
7.2.320.0160.01016.63
7.2.310.0040.01116.68
7.2.300.0130.00316.29
7.2.290.0140.00416.39
7.2.260.0100.01014.90
7.2.250.0060.01115.04
7.2.240.0080.01015.12
7.2.230.0050.01215.02
7.2.220.0070.00814.98
7.2.210.0070.01015.04
7.2.200.0080.00514.98
7.2.190.0060.00814.99
7.2.180.0060.00814.72
7.2.170.0040.01114.78
7.2.160.0030.01215.02
7.2.150.0030.01016.73
7.2.140.0120.00316.77
7.2.130.0060.01217.05
7.2.120.0030.00916.81
7.2.110.0070.00716.90
7.2.100.0040.01116.88
7.2.90.0030.01016.91
7.2.80.0070.00716.88
7.2.70.0030.01316.55
7.2.60.0100.00816.79
7.2.50.0040.01217.00
7.2.40.0060.00916.86
7.2.30.0150.00016.98
7.2.20.0060.00916.94
7.2.10.0060.00616.63
7.2.00.0030.01517.96
7.1.330.0060.00815.51
7.1.320.0090.00515.78
7.1.310.0030.01215.58
7.1.300.0050.00715.78
7.1.290.0070.00715.61
7.1.280.0030.01015.50
7.1.270.0070.00815.61
7.1.260.0060.00815.67
7.1.250.0000.01115.48
7.1.240.0000.01515.81
7.1.230.0070.00715.51
7.1.220.0030.01015.41
7.1.210.0000.00915.54
7.1.200.0080.00315.67
7.1.190.0040.01115.54
7.1.180.0060.00915.46
7.1.170.0080.00315.61
7.1.160.0060.00915.81
7.1.150.0050.00315.55
7.1.140.0030.01415.69
7.1.130.0110.00415.55
7.1.120.0110.00715.51
7.1.110.0070.01015.67
7.1.100.0060.00416.91
7.1.90.0040.00715.55
7.1.80.0030.00715.52
7.1.70.0080.00316.29
7.1.60.0060.01417.40
7.1.50.0030.01416.29
7.1.40.0110.00415.38
7.1.30.0040.00815.44
7.1.20.0080.00815.63
7.1.10.0030.01015.41
7.1.00.0040.04119.04
7.0.330.0030.00915.09
7.0.320.0000.00915.29
7.0.310.0030.01015.36
7.0.300.0040.00715.11
7.0.290.0100.00315.53
7.0.280.0030.00715.27
7.0.270.0030.00615.34
7.0.260.0090.00015.35
7.0.250.0060.00615.19
7.0.240.0030.00615.27
7.0.230.0080.00415.40
7.0.220.0110.00315.31
7.0.210.0060.00615.41
7.0.200.0020.00916.01
7.0.190.0030.00615.49
7.0.180.0100.00315.36
7.0.170.0060.00615.36
7.0.160.0030.01015.36
7.0.150.0040.00415.07
7.0.140.0060.00615.31
7.0.130.0060.00615.29
7.0.120.0100.00315.41
7.0.110.0070.00415.14
7.0.100.0090.00315.14
7.0.90.0030.00915.22
7.0.80.0070.00314.97
7.0.70.0000.00815.36
7.0.60.0150.03817.49
7.0.50.0050.04416.51
7.0.40.0080.04316.78
7.0.30.0290.03316.73
7.0.20.0140.04816.76
7.0.10.0060.04116.78
7.0.00.0080.02416.62
5.6.400.0080.00614.54
5.6.390.0030.00714.20
5.6.380.0060.00614.48
5.6.370.0040.00714.45
5.6.360.0030.00614.49
5.6.350.0070.00414.49
5.6.340.0110.00414.61
5.6.330.0080.00814.47
5.6.320.0080.00814.34
5.6.310.0000.01414.51
5.6.300.0030.01314.24
5.6.290.0110.00014.23
5.6.280.0050.03317.49
5.6.270.0060.01114.53
5.6.260.0090.00014.64
5.6.250.0030.01014.62
5.6.240.0000.01514.05
5.6.230.0090.00614.04
5.6.220.0100.00014.28
5.6.210.0070.04517.38
5.6.200.0020.03116.32
5.6.190.0100.02317.53
5.6.180.0130.02517.51
5.6.170.0200.04017.58
5.6.160.0100.02817.36
5.6.150.0090.04216.22
5.6.140.0070.02116.16
5.6.130.0030.04516.16
5.6.120.0120.02717.76
5.6.110.0070.05017.55
5.6.100.0070.03317.77
5.6.90.0050.04317.62
5.6.80.0050.04517.38
5.6.70.0090.00314.19
5.6.60.0090.00614.39
5.6.50.0030.01014.03
5.6.40.0110.00314.09
5.6.30.0060.00614.20
5.6.20.0040.00713.93
5.6.10.0080.00814.18
5.6.00.0130.00314.22
5.5.380.0030.01013.90
5.5.370.0000.01613.91
5.5.360.0070.00314.36
5.5.350.0150.02517.30
5.5.340.0050.04216.25
5.5.330.0100.04317.22
5.5.320.0750.03517.37
5.5.310.0150.04517.42
5.5.300.0040.02916.08
5.5.290.0070.03516.09
5.5.280.0060.03117.54
5.5.270.0070.04617.40
5.5.260.0100.02317.46
5.5.250.0130.04217.32
5.5.240.0130.03917.10
5.5.230.0040.01114.27
5.5.220.0060.00613.96
5.5.210.0060.00313.96
5.5.200.0060.00314.11
5.5.190.0040.00814.27
5.5.180.0040.00813.94
5.5.170.0040.01114.37
5.5.160.0040.01114.27
5.5.150.0030.01014.26
5.5.140.0120.00014.14
5.5.130.0060.00614.10
5.5.120.0000.00914.13
5.5.110.0000.01514.06
5.5.100.0040.00414.02
5.5.90.0000.01514.35
5.5.80.0030.00914.16
5.5.70.0070.00713.91
5.5.60.0060.00313.74
5.5.50.0040.00713.98
5.5.40.0060.00613.95
5.5.30.0070.00714.15
5.5.20.0060.00614.12
5.5.10.0120.00313.63
5.5.00.0060.00614.18
5.4.450.0380.03815.25
5.4.440.0470.03415.36
5.4.430.0430.03015.38
5.4.420.0460.02915.21
5.4.410.0360.03115.15
5.4.400.0380.03015.01
5.4.390.0380.03415.01
5.4.380.0380.02815.07
5.4.370.0380.03015.11
5.4.360.0320.03215.02
5.4.350.0420.03114.96
5.4.340.0430.03114.96
5.4.330.0030.01010.90
5.4.320.0300.03514.88
5.4.310.0330.03214.99
5.4.300.0310.03614.93
5.4.290.0450.02914.84
5.4.280.0490.02714.99
5.4.270.0380.03315.00
5.4.260.0420.03014.97
5.4.250.0400.02614.98
5.4.240.0400.02315.17
5.4.230.0330.03314.86
5.4.220.0380.03215.02
5.4.210.0460.03815.08
5.4.200.0380.02814.79
5.4.190.0400.02515.24
5.4.180.0350.03015.05
5.4.170.0350.02814.96
5.4.160.0350.02815.04
5.4.150.0350.03114.92
5.4.140.0300.02913.63
5.4.130.0400.02813.57
5.4.120.0330.03313.76
5.4.110.0330.03713.65
5.4.100.0370.04013.81
5.4.90.0300.02513.71
5.4.80.0270.03013.81
5.4.70.0130.02213.54
5.4.60.0130.02713.62
5.4.50.0040.02013.61
5.4.40.0150.03113.57
5.4.30.0080.03813.43
5.4.20.0150.02313.77
5.4.10.0150.03213.71
5.4.00.0040.00411.11

preferences:
59.67 ms | 401 KiB | 5 Q