3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function f(int $foo) { var_dump($foo); } f(1); f(1.5); f("10"); f("10gaklj");

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.0120.00316.50
8.3.60.0170.00018.55
8.3.50.0110.00821.20
8.3.40.0140.00718.78
8.3.30.0080.00618.80
8.3.20.0050.00220.21
8.3.10.0060.00323.55
8.3.00.0040.00423.61
8.2.180.0090.00618.34
8.2.170.0180.00418.81
8.2.160.0030.01022.96
8.2.150.0050.00325.66
8.2.140.0110.00724.66
8.2.130.0080.00019.54
8.2.120.0070.00026.35
8.2.110.0060.00322.07
8.2.100.0040.00818.04
8.2.90.0050.00319.10
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00822.32
8.2.30.0040.00420.53
8.2.20.0000.00817.55
8.2.10.0040.00418.08
8.2.00.0000.00817.97
8.1.280.0100.00725.92
8.1.270.0000.00823.79
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00623.89
8.1.230.0060.00919.15
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0070.00020.66
8.1.150.0000.00718.68
8.1.140.0030.00519.57
8.1.130.0000.00717.61
8.1.120.0040.00317.35
8.1.110.0070.00317.33
8.1.100.0050.00317.23
8.1.90.0050.00317.30
8.1.80.0000.00817.24
8.1.70.0000.00717.21
8.1.60.0000.00717.54
8.1.50.0050.00317.31
8.1.40.0040.00417.52
8.1.30.0080.00017.59
8.1.20.0030.00617.48
8.1.10.0050.00317.48
8.1.00.0070.00017.40
8.0.300.0000.00818.77
8.0.290.0030.00516.75
8.0.280.0000.00718.28
8.0.270.0030.00317.18
8.0.260.0030.00317.19
8.0.250.0030.00316.93
8.0.240.0070.00016.86
8.0.230.0040.00416.83
8.0.220.0000.00816.84
8.0.210.0070.00016.95
8.0.200.0030.00316.93
8.0.190.0070.00016.94
8.0.180.0040.00416.92
8.0.170.0000.00716.90
8.0.160.0030.00516.80
8.0.150.0030.00516.74
8.0.140.0070.00016.84
8.0.130.0060.00013.27
8.0.120.0040.00416.75
8.0.110.0040.00416.72
8.0.100.0000.00816.92
8.0.90.0040.00416.92
8.0.80.0040.01816.89
8.0.70.0040.00416.74
8.0.60.0000.00716.92
8.0.50.0070.00016.71
8.0.30.0140.00617.09
8.0.20.0110.00817.40
8.0.10.0000.00716.98
8.0.00.0070.01116.81
7.4.330.0020.00216.76
7.4.320.0060.00016.35
7.4.300.0030.00316.42
7.4.290.0000.00716.52
7.4.280.0000.01016.52
7.4.270.0060.00316.45
7.4.260.0000.00716.48
7.4.250.0030.00516.53
7.4.240.0050.00216.44
7.4.230.0050.00316.54
7.4.220.0100.01716.56
7.4.210.0080.00816.55
7.4.200.0040.00416.36
7.4.160.0060.00916.43
7.4.150.0110.00517.40
7.4.140.0090.01417.86
7.4.130.0060.01216.45
7.4.120.0030.01316.46
7.4.110.0070.01016.43
7.4.100.0120.00616.57
7.4.90.0110.00716.48
7.4.80.0000.01719.39
7.4.70.0060.00916.54
7.4.60.0000.01616.42
7.4.50.0060.01016.07
7.4.40.0070.01016.29
7.4.30.0140.00216.33
7.4.00.0070.00914.68
7.3.330.0000.00513.36
7.3.320.0050.00313.21
7.3.310.0030.00616.14
7.3.300.0030.00316.34
7.3.290.0000.00816.22
7.3.280.0090.01016.24
7.3.270.0120.00617.40
7.3.260.0040.01316.53
7.3.250.0130.00416.40
7.3.240.0180.00116.32
7.3.230.0120.00416.53
7.3.210.0070.01016.34
7.3.200.0060.01019.39
7.3.190.0070.01016.30
7.3.180.0330.02016.35
7.3.170.0110.00616.63
7.3.160.0060.00916.29
7.3.120.0050.01314.86
7.3.110.0040.01014.64
7.3.100.0070.01114.66
7.3.90.0080.00814.66
7.3.80.0070.00714.49
7.3.70.0000.01514.67
7.3.60.0110.00314.80
7.3.50.0040.01114.44
7.3.40.0080.01014.57
7.3.30.0050.00814.65
7.3.20.0090.00716.60
7.3.10.0010.00916.51
7.3.00.0040.00816.43
7.2.330.0060.01316.54
7.2.320.0090.01516.27
7.2.310.0080.00816.58
7.2.300.0170.00316.54
7.2.290.0060.01216.58
7.2.250.0030.01314.92
7.2.240.0100.00714.92
7.2.230.0100.00114.67
7.2.220.0080.00915.08
7.2.210.0050.01314.82
7.2.200.0070.00614.77
7.2.190.0070.01014.65
7.2.180.0080.01014.88
7.2.170.0070.00914.89
7.2.160.0080.01214.88
7.2.150.0000.01516.73
7.2.140.0070.01116.73
7.2.130.0070.00516.67
7.2.120.0120.00316.68
7.2.110.0060.00616.66
7.2.100.0090.00516.69
7.2.90.0060.00816.64
7.2.80.0050.00916.89
7.2.70.0060.00616.63
7.2.60.0160.00116.52
7.2.50.0070.00516.67
7.2.40.0060.00916.71
7.2.30.0050.00816.69
7.2.20.0050.01116.83
7.2.10.0030.01316.79
7.2.00.0100.00917.53
7.1.330.0050.00815.61
7.1.320.0140.00715.76
7.1.310.0100.00215.75
7.1.300.0050.00915.44
7.1.290.0130.00515.60
7.1.280.0060.01115.81
7.1.270.0020.01415.46
7.1.260.0060.00915.78
7.1.250.0080.00615.64
7.1.240.0030.00615.38
7.1.230.0060.00915.70
7.1.220.0030.00915.30
7.1.210.0140.00015.80
7.1.200.0080.00615.72
7.1.190.0040.00415.64
7.1.180.0040.00415.38
7.1.170.0040.00815.25
7.1.160.0090.00315.34
7.1.150.0100.00615.44
7.1.140.0000.01415.35
7.1.130.0120.00015.68
7.1.120.0000.01015.81
7.1.110.0040.01115.79
7.1.100.0060.00616.96
7.1.90.0030.01015.76
7.1.80.0030.01015.82
7.1.70.0010.00916.38
7.1.60.0100.00717.37
7.1.50.0080.01116.13
7.1.40.0100.00315.73
7.1.30.0030.00615.57
7.1.20.0030.01015.71
7.1.10.0040.01115.74
7.1.00.0030.04218.98
7.0.330.0060.01015.34
7.0.320.0000.01315.29
7.0.310.0080.00815.37
7.0.300.0030.01315.10
7.0.290.0150.00315.28
7.0.280.0040.00415.26
7.0.270.0040.01115.03
7.0.260.0040.00715.36
7.0.250.0040.01215.55
7.0.240.0100.00015.29
7.0.230.0070.00715.36
7.0.220.0030.01315.45
7.0.210.0000.01415.08
7.0.200.0040.00916.05
7.0.190.0000.01415.32
7.0.180.0000.00915.36
7.0.170.0030.00615.15
7.0.160.0090.00315.19
7.0.150.0070.00414.90
7.0.140.0030.01015.27
7.0.130.0040.01215.43
7.0.120.0030.01015.16
7.0.110.0080.00415.45
7.0.100.0030.01415.20
7.0.90.0100.00315.00
7.0.80.0000.01015.12
7.0.70.0060.00315.27
7.0.60.0050.04718.45
7.0.50.0080.02616.64
7.0.40.0020.02816.69
7.0.30.0160.02216.80
7.0.20.0220.03816.77
7.0.10.0070.02216.79
7.0.00.0080.04516.58
5.6.400.0080.00414.32
5.6.390.0070.00714.05
5.6.380.0070.00714.26
5.6.370.0070.00714.36
5.6.360.0030.01314.27
5.6.350.0080.00414.25
5.6.340.0030.00914.07
5.6.330.0060.00613.75
5.6.320.0060.00914.14
5.6.310.0100.00314.19
5.6.300.0080.00413.62
5.6.290.0060.00914.35
5.6.280.0020.03417.54
5.6.270.0110.00714.22
5.6.260.0060.00913.61
5.6.250.0090.00613.87
5.6.240.0040.00813.87
5.6.230.0110.00414.23
5.6.220.0060.00914.20
5.6.210.0030.03617.14
5.6.200.0020.03716.27
5.6.190.0060.03917.21
5.6.180.0160.03017.25
5.6.170.0170.01817.21
5.6.160.0070.02517.27
5.6.150.0080.03016.21
5.6.140.0030.02716.29
5.6.130.0080.04016.20
5.6.120.0100.04317.52
5.6.110.0070.04417.58
5.6.100.0020.05017.42
5.6.90.0080.04317.53
5.6.80.0070.04717.22
5.6.70.0140.00414.07
5.6.60.0090.00613.88
5.6.50.0000.01714.13
5.6.40.0030.00713.88
5.6.30.0040.01113.75
5.6.20.0120.00413.81
5.6.10.0070.00713.76
5.6.00.0140.00014.09
5.5.380.0070.00714.04
5.5.370.0030.01013.87
5.5.360.0060.00613.86
5.5.350.0150.03617.14
5.5.340.0050.04715.98
5.5.330.0050.04617.17
5.5.320.0330.03117.31
5.5.310.0180.03817.09
5.5.300.0000.04715.74
5.5.290.0040.02715.74
5.5.280.0050.02917.19
5.5.270.0050.03017.40
5.5.260.0060.04117.36
5.5.250.0110.03817.12
5.5.240.0050.03217.07
5.5.230.0100.00713.79
5.5.220.0050.00513.63
5.5.210.0070.00713.89
5.5.200.0000.01013.93
5.5.190.0000.01513.93
5.5.180.0040.01113.96
5.5.170.0080.00413.82
5.5.160.0070.00713.94
5.5.150.0040.01113.82
5.5.140.0040.00813.86
5.5.130.0080.00813.61
5.5.120.0000.01213.83
5.5.110.0060.00913.91
5.5.100.0030.00613.75
5.5.90.0030.00714.03
5.5.80.0030.01014.14
5.5.70.0080.00613.46
5.5.60.0060.00313.96
5.5.50.0070.00414.11
5.5.40.0070.00714.04
5.5.30.0080.00613.60
5.5.20.0030.01013.48
5.5.10.0030.00613.90
5.5.00.0000.01313.93

preferences:
54.6 ms | 401 KiB | 5 Q