3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); // <-- strict types enabled function test (string $test) { var_dump($test); } $value = 5; // explicit test((string)$value); // implicit test($value);

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.5.00.0140.00820.21
8.4.150.0020.00014.05
8.4.140.0150.00717.86
8.4.130.0040.00520.34
8.4.120.0130.00717.69
8.4.110.0090.01118.01
8.4.100.0120.00817.86
8.4.90.0060.00520.57
8.4.80.0060.00618.81
8.4.70.0110.00918.80
8.4.60.0070.00118.69
8.4.50.0050.00322.26
8.4.40.0130.00617.76
8.4.30.0100.01018.01
8.4.20.0210.00017.84
8.4.10.0000.00917.77
8.3.280.0110.01118.36
8.3.270.0140.00716.56
8.3.260.0100.01016.63
8.3.250.0040.00416.80
8.3.240.0130.00716.43
8.3.230.0120.00616.77
8.3.220.0110.00718.89
8.3.210.0090.00518.40
8.3.200.0040.00516.54
8.3.190.0050.00417.30
8.3.180.0090.01118.82
8.3.170.0110.00716.88
8.3.160.0070.01118.84
8.3.150.0110.00717.20
8.3.140.0030.01218.91
8.3.130.0040.00416.82
8.3.120.0100.00720.60
8.3.110.0030.00620.94
8.3.100.0050.00524.06
8.3.90.0000.00826.77
8.3.80.0040.00417.97
8.3.70.0070.01116.63
8.3.60.0150.00318.55
8.3.50.0180.00318.25
8.3.40.0100.00718.92
8.3.30.0060.01318.70
8.3.20.0040.00419.00
8.3.10.0080.00020.98
8.3.00.0050.00323.66
8.2.290.0110.00716.64
8.2.280.0090.01018.42
8.2.270.0090.00919.17
8.2.260.0090.00916.50
8.2.250.0120.00316.75
8.2.240.0050.00317.26
8.2.230.0130.00322.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0060.00316.50
8.2.190.0070.00716.75
8.2.180.0180.01116.50
8.2.170.0110.00422.96
8.2.160.0100.00722.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00021.06
8.2.120.0070.00026.35
8.2.110.0040.00421.12
8.2.100.0000.01217.66
8.2.90.0000.00819.88
8.2.80.0040.00418.09
8.2.70.0040.00417.75
8.2.60.0060.00617.38
8.2.50.0000.00818.10
8.2.40.0070.00019.31
8.2.30.0050.00319.25
8.2.20.0070.00017.86
8.2.10.0000.00718.11
8.2.00.0040.00419.30
8.1.330.0140.00516.20
8.1.320.0100.00518.25
8.1.310.0030.00616.69
8.1.300.0060.00319.94
8.1.290.0030.00730.84
8.1.280.0090.00625.92
8.1.270.0030.00623.88
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0130.01023.86
8.1.230.0090.00322.82
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00918.57
8.1.160.0080.00018.78
8.1.150.0040.00418.86
8.1.140.0000.00717.39
8.1.130.0000.00717.26
8.1.120.0040.00417.29
8.1.110.0000.00717.39
8.1.100.0040.00417.35
8.1.90.0000.00917.41
8.1.80.0040.00417.40
8.1.70.0030.00317.52
8.1.60.0080.00017.56
8.1.50.0000.00817.54
8.1.40.0030.00517.52
8.1.30.0000.00817.71
8.1.20.0000.00717.66
8.1.10.0030.00617.44
8.1.00.0080.00017.40
8.0.300.0030.00319.93
8.0.290.0060.00316.75
8.0.280.0000.00718.43
8.0.270.0070.00017.22
8.0.260.0000.00716.82
8.0.250.0090.00016.85
8.0.240.0040.00416.97
8.0.230.0030.00316.88
8.0.220.0000.00816.75
8.0.210.0070.00016.88
8.0.200.0030.00316.95
8.0.190.0040.00416.99
8.0.180.0020.00516.85
8.0.170.0040.00416.84
8.0.160.0070.00016.97
8.0.150.0040.00416.71
8.0.140.0000.00716.85
8.0.130.0040.00413.28
8.0.120.0000.00916.88
8.0.110.0040.00416.85
8.0.100.0000.00816.84
8.0.90.0000.00716.91
8.0.80.0070.01016.82
8.0.70.0040.00416.86
8.0.60.0030.00616.84
8.0.50.0070.00016.88
8.0.30.0120.00916.86
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0100.00916.68
7.4.330.0000.00515.55
7.4.320.0000.00616.61
7.4.300.0000.00716.61
7.4.290.0030.00316.41
7.4.280.0040.00416.57
7.4.270.0030.00716.51
7.4.260.0070.00016.50
7.4.250.0000.00716.42
7.4.240.0070.00016.52
7.4.230.0030.00316.68
7.4.220.0070.00016.63
7.4.210.0080.00816.65
7.4.200.0030.00316.58
7.4.160.0110.00616.54
7.4.140.0090.01217.86
7.4.130.0140.00616.63
7.4.120.0100.01016.52
7.4.110.0060.01216.53
7.4.100.0040.01216.56
7.4.90.0150.00316.59
7.4.80.0120.00419.39
7.4.70.0130.00316.41
7.4.60.0040.01816.55
7.4.50.0070.01016.43
7.4.40.0140.00716.34
7.4.00.0000.01314.93
7.3.330.0060.00013.20
7.3.320.0040.00413.22
7.3.310.0040.00416.40
7.3.300.0060.00016.28
7.3.290.0070.00016.23
7.3.280.0120.00416.41
7.3.260.0130.00716.52
7.3.240.0090.00816.52
7.3.230.0070.01316.63
7.3.210.0090.01216.46
7.3.200.0070.01416.38
7.3.190.0130.00316.56
7.3.180.0130.00316.47
7.3.170.0030.01616.39
7.3.160.0130.00616.50
7.3.10.0000.01416.80
7.3.00.0090.00616.63
7.2.330.0120.00616.70
7.2.320.0140.00616.42
7.2.310.0090.00916.30
7.2.300.0070.01116.69
7.2.290.0100.00716.41
7.2.130.0090.00316.91
7.2.120.0100.00316.66
7.2.110.0100.00616.38
7.2.100.0040.01116.71
7.2.90.0030.01317.02
7.2.80.0030.00716.50
7.2.70.0120.00815.88
7.2.60.0160.00415.92
7.2.50.0140.00515.81
7.2.40.0110.00915.88
7.2.30.0090.01116.05
7.2.20.0150.00515.93
7.2.10.0100.01015.96
7.2.00.0130.00615.66
7.1.250.0030.00715.46
7.1.200.0040.01115.81
7.1.170.0190.00614.06
7.1.160.0870.01013.50
7.1.150.0180.00613.61
7.1.140.0240.00013.74
7.1.130.0250.00013.78
7.1.120.0130.01014.04
7.1.110.0180.00913.91
7.1.100.0170.00714.07
7.1.90.0140.01013.65
7.1.80.0190.00613.76
7.1.70.0350.00013.51
7.1.60.0340.01331.54
7.1.50.0360.01031.32
7.1.40.0310.01631.94
7.1.30.0440.00331.88
7.1.20.0380.01031.76
7.1.10.0160.01013.29
7.1.00.0210.00313.87

preferences:
190.29 ms | 403 KiB | 5 Q