3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function multiply(float $x, float $y) { return $x * $y; } function add(int $x, int $y) { return $x + $y; } var_dump(multiply(2.5, 3.5)); // float(7) var_dump(add('2', 3));

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.0110.00416.60
8.3.50.0110.00721.93
8.3.40.0120.00318.54
8.3.30.0090.00618.83
8.3.20.0000.00820.26
8.3.10.0040.00423.65
8.3.00.0000.00823.66
8.2.180.0160.00018.10
8.2.170.0090.00622.96
8.2.160.0180.00020.52
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0060.00321.00
8.2.120.0040.00426.35
8.2.110.0060.00321.99
8.2.100.0110.00017.80
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0070.00417.63
8.2.60.0100.00017.91
8.2.50.0030.00518.07
8.2.40.0060.00322.20
8.2.30.0000.00720.52
8.2.20.0030.00517.84
8.2.10.0040.00418.16
8.2.00.0040.00418.03
8.1.280.0170.00325.92
8.1.270.0050.00320.24
8.1.260.0020.00528.09
8.1.250.0040.00428.09
8.1.240.0050.00522.38
8.1.230.0080.00419.01
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.65
8.1.160.0040.00420.50
8.1.150.0070.00018.83
8.1.140.0050.00319.45
8.1.130.0000.00717.61
8.1.120.0030.00517.37
8.1.110.0030.00617.14
8.1.100.0040.00417.29
8.1.90.0050.00317.36
8.1.80.0040.00417.32
8.1.70.0030.00517.29
8.1.60.0000.00917.56
8.1.50.0000.00817.48
8.1.40.0050.00317.36
8.1.30.0000.00817.56
8.1.20.0050.00317.54
8.1.10.0040.00417.50
8.1.00.0000.00817.32
8.0.300.0090.00018.77
8.0.290.0000.00816.75
8.0.280.0040.00418.27
8.0.270.0030.00317.30
8.0.260.0000.00717.23
8.0.250.0030.00316.87
8.0.240.0030.00516.99
8.0.230.0040.00417.01
8.0.220.0000.00816.89
8.0.210.0030.00316.90
8.0.200.0000.00616.90
8.0.190.0040.00416.93
8.0.180.0030.00516.80
8.0.170.0070.00016.94
8.0.160.0000.00716.96
8.0.150.0040.00416.81
8.0.140.0000.00916.69
8.0.130.0000.00513.38
8.0.120.0000.00816.81
8.0.110.0040.00416.87
8.0.100.0040.00416.81
8.0.90.0000.00716.72
8.0.80.0100.00716.94
8.0.70.0000.00816.79
8.0.60.0070.00016.88
8.0.50.0000.00816.83
8.0.30.0100.00716.98
8.0.20.0100.00917.40
8.0.10.0040.00416.92
8.0.00.0110.00916.71
7.4.330.0060.00016.83
7.4.320.0000.00716.47
7.4.300.0060.00016.51
7.4.290.0070.00016.43
7.4.280.0040.00416.56
7.4.270.0000.00616.53
7.4.260.0040.00416.50
7.4.250.0070.00016.50
7.4.240.0010.00616.37
7.4.230.0000.00816.55
7.4.220.0060.00916.42
7.4.210.0090.00616.39
7.4.200.0040.00416.59
7.4.160.0090.00616.40
7.4.150.0100.00717.40
7.4.140.0180.00317.86
7.4.130.0100.00816.59
7.4.120.0100.00616.47
7.4.110.0150.00816.55
7.4.100.0180.00016.73
7.4.90.0140.00316.42
7.4.80.0030.01516.45
7.4.70.0070.01016.42
7.4.60.0030.01316.28
7.4.50.0110.00716.18
7.4.40.0120.00616.67
7.4.30.0130.00616.55
7.4.00.0070.00715.02
7.3.330.0000.00513.34
7.3.320.0000.00513.32
7.3.310.0000.00716.47
7.3.300.0040.00416.33
7.3.290.0080.00716.32
7.3.280.0080.00916.36
7.3.270.0070.01117.40
7.3.260.0040.01316.46
7.3.250.0100.00716.54
7.3.240.0070.01016.53
7.3.230.0150.00816.39
7.3.210.0120.00616.72
7.3.200.0090.00916.37
7.3.190.0150.00616.49
7.3.180.0100.00616.42
7.3.170.0060.01316.39
7.3.160.0030.01316.40
7.3.120.0070.01014.96
7.3.110.0070.01014.88
7.3.100.0070.00714.88
7.3.90.0060.01214.63
7.3.80.0060.00914.95
7.3.70.0070.00714.75
7.3.60.0060.00914.68
7.3.50.0000.01214.64
7.3.40.0070.00714.77
7.3.30.0000.01414.91
7.3.20.0040.01116.85
7.3.10.0070.00816.62
7.3.00.0020.01216.58
7.2.330.0140.00316.57
7.2.320.0100.00616.68
7.2.310.0090.00916.31
7.2.300.0060.01416.52
7.2.290.0160.00616.54
7.2.250.0070.01015.07
7.2.240.0040.01515.25
7.2.230.0080.00414.64
7.2.220.0100.01014.71
7.2.210.0070.01314.99
7.2.200.0090.00615.06
7.2.190.0060.00615.07
7.2.180.0140.00414.76
7.2.170.0040.01114.78
7.2.130.0030.00916.64
7.2.120.0060.00616.71
7.2.110.0030.01316.87
7.2.100.0000.01116.82
7.2.90.0070.00716.88
7.2.80.0040.00816.83
7.2.70.0070.00416.98
7.2.60.0080.00516.75
7.2.50.0090.00616.91
7.2.40.0090.00616.61
7.2.30.0080.00616.78
7.2.20.0100.00016.90
7.2.10.0040.00816.76
7.2.00.0020.01318.18
7.1.330.0040.01115.75
7.1.320.0030.00915.70
7.1.310.0030.00915.93
7.1.300.0090.00615.61
7.1.290.0000.01415.45
7.1.280.0030.00715.72
7.1.270.0040.00815.76
7.1.260.0070.00715.83
7.1.250.0000.01015.49
7.1.200.0090.00315.79
7.1.100.0030.00517.85
7.1.70.0040.00416.80
7.1.60.0070.01819.52
7.1.50.0040.01816.92
7.1.00.0100.07022.48
7.0.200.0040.00416.47
7.0.60.0100.07719.84
7.0.50.0100.08017.96
7.0.40.0070.05320.18
7.0.30.0200.04020.23
7.0.20.0330.07320.07
7.0.10.0170.07020.24
7.0.00.0030.06020.23
5.6.210.0130.07720.53
5.6.200.0100.05718.29
5.6.190.0130.07320.55
5.6.180.0230.06720.63
5.6.170.0200.04320.56
5.6.160.0200.06320.71
5.6.150.0100.08018.21
5.6.140.0100.06318.15
5.6.130.0100.06018.24
5.6.120.0070.08320.96
5.6.110.0070.08021.00
5.6.100.0070.08320.99
5.6.90.0030.05720.99
5.6.80.0200.07320.39
5.5.350.0300.08020.39
5.5.340.0070.05717.99
5.5.330.0100.04020.35
5.5.320.0170.04320.35
5.5.310.0230.08020.38
5.5.300.0070.04717.98
5.5.290.0070.04018.01
5.5.280.0100.08020.98
5.5.270.0130.07320.79
5.5.260.0030.07320.71
5.5.250.0030.05720.60
5.5.240.0170.08020.12

preferences:
43.05 ms | 401 KiB | 5 Q