3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_hash($key): string { return (string) $key; } var_dump( test_hash(1) , test_hash(new DateTime) );

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.01118.80
8.3.50.0110.00316.63
8.3.40.0080.00819.03
8.3.30.0150.00018.72
8.3.20.0060.00319.28
8.3.10.0040.00421.91
8.3.00.0000.00820.84
8.2.180.0120.00918.42
8.2.170.0100.00722.96
8.2.160.0080.00522.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0070.00026.35
8.2.110.0030.00720.35
8.2.100.0040.00817.69
8.2.90.0060.00319.17
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0030.00518.03
8.2.50.0000.00818.10
8.2.40.0000.00822.32
8.2.30.0040.00419.29
8.2.20.0000.00817.98
8.2.10.0040.00417.93
8.2.00.0000.00718.04
8.1.280.0100.00725.92
8.1.270.0070.00022.05
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00322.49
8.1.230.0070.00319.10
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0030.00617.35
8.1.180.0090.00018.10
8.1.170.0040.00418.61
8.1.160.0030.00318.92
8.1.150.0040.00418.82
8.1.140.0030.00619.41
8.1.130.0030.00318.82
8.1.120.0050.00317.55
8.1.110.0050.00317.50
8.1.100.0040.00417.51
8.1.90.0030.00617.50
8.1.80.0060.00317.42
8.1.70.0060.00317.50
8.1.60.0030.00617.62
8.1.50.0020.00517.64
8.1.40.0000.00717.53
8.1.30.0070.00017.72
8.1.20.0030.00517.62
8.1.10.0030.00517.65
8.1.00.0040.00417.64
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0080.00017.27
8.0.260.0030.00316.96
8.0.250.0060.00017.13
8.0.240.0080.00017.00
8.0.230.0000.00717.04
8.0.220.0000.00716.95
8.0.210.0040.00416.97
8.0.200.0030.00317.04
8.0.190.0030.00617.06
8.0.180.0050.00417.11
8.0.170.0000.00717.15
8.0.160.0030.00317.10
8.0.150.0050.00217.06
8.0.140.0050.00517.07
8.0.130.0090.00013.50
8.0.120.0000.00716.96
8.0.110.0040.00417.06
8.0.100.0040.00417.15
8.0.90.0050.00217.07
8.0.80.0060.00917.12
8.0.70.0070.00017.10
8.0.60.0050.00217.11
8.0.50.0000.00817.04
8.0.30.0080.01217.26
8.0.20.0110.00817.40
8.0.10.0030.00517.23
8.0.00.0090.00916.69
7.4.330.0050.00015.55
7.4.320.0030.00316.65
7.4.300.0000.00816.55
7.4.290.0000.00716.59
7.4.280.0000.00816.60
7.4.270.0040.00416.71
7.4.260.0030.00313.21
7.4.250.0000.00716.65
7.4.240.0000.00816.73
7.4.230.0000.00716.68
7.4.220.0110.01416.57
7.4.210.0110.00316.71
7.4.200.0030.00316.65
7.4.160.0080.00816.67
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0130.00616.77
7.4.120.0070.00916.69
7.4.110.0100.00716.68
7.4.100.0160.00616.86
7.4.90.0000.01716.73
7.4.80.0170.00019.39
7.4.70.0080.01216.44
7.4.60.0100.00616.63
7.4.50.0120.00316.66
7.4.40.0100.01016.66
7.4.30.0120.00916.68
7.4.10.0030.01415.03
7.4.00.0060.00915.29
7.3.330.0000.00613.34
7.3.320.0000.00513.30
7.3.310.0000.00716.30
7.3.300.0000.00716.45
7.3.290.0090.00716.50
7.3.280.0080.00916.49
7.3.270.0100.00717.40
7.3.260.0080.01016.61
7.3.250.0140.00816.56
7.3.240.0110.00616.50
7.3.230.0070.01016.52
7.3.210.0150.00416.62
7.3.200.0110.00716.52
7.3.190.0080.00816.62
7.3.180.0120.00816.67
7.3.170.0090.00916.44
7.3.160.0120.00316.50
7.3.130.0100.00715.05
7.3.120.0150.00415.00
7.3.110.0080.00814.89
7.3.100.0030.01314.87
7.3.90.0100.00715.00
7.3.80.0060.00615.00
7.3.70.0100.00715.00
7.3.60.0090.00315.01
7.3.50.0060.00914.99
7.3.40.0030.01014.98
7.3.30.0060.00314.93
7.3.20.0070.00716.58
7.3.10.0120.00316.69
7.3.00.0090.00716.69
7.2.330.0090.00916.57
7.2.320.0110.00816.68
7.2.310.0030.01316.92
7.2.300.0070.01016.80
7.2.290.0090.01216.78
7.2.260.0030.01214.97
7.2.250.0040.01115.07
7.2.240.0030.01015.05
7.2.230.0070.01415.22
7.2.220.0000.01515.32
7.2.210.0040.01114.93
7.2.200.0100.00314.98
7.2.190.0060.00915.13
7.2.180.0030.01215.18
7.2.170.0060.00615.09
7.2.160.0060.00315.09
7.2.150.0000.01516.85
7.2.140.0090.00617.04
7.2.130.0050.01016.96
7.2.120.0020.01216.83
7.2.110.0070.00916.87
7.2.100.0050.01116.98
7.2.90.0050.00817.06
7.2.80.0060.00916.92
7.2.70.0060.00617.04
7.2.60.0100.00516.91
7.2.50.0030.01216.69
7.2.40.0030.00616.90
7.2.30.0080.00516.91
7.2.20.0020.01616.87
7.2.10.0040.01016.88
7.2.00.0050.01017.77
7.1.330.0060.00615.71
7.1.320.0070.00715.79
7.1.310.0090.00615.85
7.1.300.0030.00715.52
7.1.290.0060.01115.90
7.1.280.0070.00715.84
7.1.270.0040.01115.84
7.1.260.0040.00415.97
7.1.250.0050.00815.75
7.1.240.0090.00615.86
7.1.230.0080.00815.70
7.1.220.0030.01015.82
7.1.210.0130.00015.93
7.1.200.0030.00715.92
7.1.190.0070.00415.45
7.1.180.0060.00315.73
7.1.170.0070.01015.97
7.1.160.0030.00715.82
7.1.150.0090.00015.85
7.1.140.0000.01115.93
7.1.130.0000.00915.95
7.1.120.0000.01415.98
7.1.110.0120.00615.68
7.1.100.0020.01016.87
7.1.90.0060.00316.00
7.1.80.0060.00815.78
7.1.70.0070.01016.47
7.1.60.0130.00825.45
7.1.50.0110.00825.19
7.1.40.0120.00725.14
7.1.30.0120.00725.05
7.1.20.0090.01125.19
7.1.10.0050.00816.18
7.1.00.0020.00916.42
7.0.330.0000.01415.43
7.0.320.0030.00515.59
7.0.310.0060.00615.42
7.0.300.0070.00715.20
7.0.290.0060.00615.62
7.0.280.0040.01215.43
7.0.270.0030.00515.47
7.0.260.0100.00715.36
7.0.250.0120.00615.45
7.0.240.0090.00615.26
7.0.230.0100.00315.62
7.0.220.0070.01015.54
7.0.210.0000.01815.53
7.0.200.0030.00816.24
7.0.190.0020.01016.08
7.0.180.0030.00715.90
7.0.170.0020.00915.90
7.0.160.0070.00515.91
7.0.150.0020.01115.93
7.0.140.0020.00715.99
7.0.130.0030.00716.02
7.0.120.0050.00716.08
7.0.110.0090.00316.02
7.0.100.0050.00316.06
7.0.90.0000.01015.79
7.0.80.0030.00916.04
7.0.70.0000.01115.83
7.0.60.0020.00615.91
7.0.50.0050.00715.78
7.0.40.0030.00815.03
7.0.30.0080.00514.99
7.0.20.0030.00814.99
7.0.10.0030.01014.81
7.0.00.0000.01014.85
5.6.400.0100.00014.27
5.6.390.0110.00314.34
5.6.380.0030.01014.41
5.6.370.0060.00614.29
5.6.360.0070.00714.25
5.6.350.0000.00914.52
5.6.340.0000.01113.96
5.6.330.0090.00314.33
5.6.320.0060.00613.99
5.6.310.0060.00614.16
5.6.300.0090.00014.12
5.6.290.0000.01114.12
5.6.280.0050.00513.84
5.6.270.0060.00614.28
5.6.260.0050.00514.19
5.6.250.0040.00414.13
5.6.240.0090.00013.97
5.6.230.0060.00614.14
5.6.220.0040.00414.23
5.6.210.0090.00013.98
5.6.200.0100.00314.09
5.6.190.0040.00813.92
5.6.180.0070.01013.95
5.6.170.0040.01513.88
5.6.160.0070.00413.99
5.6.150.0090.00314.23
5.6.140.0040.00713.90
5.6.130.0100.00314.06
5.6.120.0120.00013.91
5.6.110.0080.00814.07
5.6.100.0070.00714.22
5.6.90.0070.00713.95
5.6.80.0080.00014.01
5.6.70.0060.00613.96
5.6.60.0040.01114.10
5.6.50.0030.01014.00
5.6.40.0100.00714.13
5.6.30.0120.00014.26
5.6.20.0040.01114.26
5.6.10.0000.01013.77
5.6.00.0060.00614.04

preferences:
53.48 ms | 400 KiB | 5 Q