3v4l.org

run code in 300+ PHP versions simultaneously
<?php $int = 42; $float = 42.1234; $bool = true; $resource = fopen('php://stdout', 'w'); $null = null; $string = 'Foo bar'; $object = new \stdClass(); var_dump($int[1]); var_dump($float[1]); var_dump($bool[1]); var_dump($resource[1]); var_dump($null[1]); var_dump($string[1]); var_dump($object[1]);

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.4.20.0050.00517.71
8.4.10.0090.00018.07
8.3.150.0150.00618.81
8.3.140.0120.00617.05
8.3.130.0080.00016.68
8.3.120.0060.00318.70
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0040.01426.77
8.3.80.0050.00518.56
8.3.70.0070.01416.63
8.3.60.0120.00918.27
8.3.50.0050.00818.21
8.3.40.0150.00718.75
8.3.30.0110.01118.52
8.3.20.0150.00319.06
8.3.10.0150.00421.03
8.3.00.0080.00022.39
8.2.270.0040.01516.88
8.2.260.0100.01017.06
8.2.250.0150.00318.37
8.2.240.0100.00717.29
8.2.230.0030.00622.58
8.2.220.0100.00037.54
8.2.210.0030.00526.77
8.2.200.0040.00717.13
8.2.190.0090.00617.00
8.2.180.0070.00725.92
8.2.170.0080.00819.09
8.2.160.0130.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00619.14
8.2.110.0070.00321.11
8.2.100.0040.00717.84
8.2.90.0000.00719.39
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0040.00418.35
8.2.30.0040.00418.09
8.2.20.0050.00218.01
8.2.10.0040.00418.07
8.2.00.0070.00019.50
8.1.310.0000.00816.54
8.1.300.0090.00918.66
8.1.290.0030.00630.84
8.1.280.0080.00625.92
8.1.270.0080.00024.66
8.1.260.0050.00526.35
8.1.250.0000.00728.09
8.1.240.0050.00522.48
8.1.230.0040.00820.90
8.1.220.0030.00617.79
8.1.210.0040.00418.96
8.1.200.0030.00717.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.90
8.1.160.0040.00418.96
8.1.150.0000.00718.86
8.1.140.0060.00317.61
8.1.130.0000.00720.72
8.1.120.0000.00717.34
8.1.110.0040.00417.45
8.1.100.0050.00317.43
8.1.90.0050.00517.32
8.1.80.0040.00417.46
8.1.70.0060.00317.39
8.1.60.0040.00417.55
8.1.50.0030.00817.51
8.1.40.0000.00817.52
8.1.30.0070.00317.51
8.1.20.0070.00317.70
8.1.10.0000.01117.48
8.1.00.0000.00817.52
8.0.300.0000.00819.85
8.0.290.0070.00016.63
8.0.280.0000.00718.53
8.0.270.0000.00717.34
8.0.260.0040.00417.33
8.0.250.0000.00817.11
8.0.240.0030.00317.09
8.0.230.0000.00717.00
8.0.220.0030.00416.87
8.0.210.0040.00416.99
8.0.200.0000.00816.91
8.0.190.0040.00416.91
8.0.180.0030.00517.05
8.0.170.0000.00917.00
8.0.160.0040.00416.87
8.0.150.0050.00316.89
8.0.140.0040.00416.96
8.0.130.0030.00313.37
8.0.120.0060.00515.19
8.0.110.0090.00115.15
8.0.100.0080.00015.09
8.0.90.0030.00415.17
8.0.80.0070.00915.82
8.0.70.0070.00415.11
8.0.60.0060.00215.06
8.0.50.0080.00215.14
8.0.30.0110.00716.36
8.0.20.0110.00616.29
8.0.10.0110.00415.26
8.0.00.0080.00915.97
7.4.330.0030.00315.55
7.4.320.0000.00716.57
7.4.300.0030.00316.51
7.4.290.0040.00416.63
7.4.280.0070.00016.62
7.4.270.0080.00016.58
7.4.260.0000.00816.60
7.4.250.0030.00314.90
7.4.240.0080.00414.95
7.4.230.0060.00614.86
7.4.220.0080.00414.79
7.4.210.0070.00915.53
7.4.200.0060.00314.84
7.4.190.0060.00913.39
7.4.180.0140.00013.34
7.4.160.0090.00715.88
7.4.150.0100.00614.88
7.4.140.0090.00917.03
7.4.130.0080.00815.52
7.4.120.0130.00716.12
7.4.110.0110.00515.40
7.4.100.0110.00515.54
7.4.90.0100.00515.42
7.4.80.0050.01216.42
7.4.70.0090.00615.48
7.4.60.0070.00815.45
7.4.50.0070.00715.39
7.4.40.0110.00615.53
7.4.30.0120.00515.67
7.4.20.0050.01115.67
7.4.10.0110.00515.63
7.4.00.0080.00615.57
7.3.330.0050.00013.34
7.3.320.0040.00513.22
7.3.310.0060.00514.71
7.3.300.0100.00014.84
7.3.290.0070.00314.72
7.3.280.0060.00915.32
7.3.270.0070.00914.74
7.3.260.0090.00715.87
7.3.250.0090.00514.78
7.3.240.0100.00715.82
7.3.230.0090.00615.28
7.3.220.0120.00214.51
7.3.210.0070.00915.23
7.3.200.0130.00415.17
7.3.190.0060.00815.17
7.3.180.0100.00415.24
7.3.170.0040.01115.14
7.3.160.0080.00915.50
7.3.150.0080.00815.50
7.3.140.0080.00815.50
7.3.130.0070.00815.48
7.3.120.0070.00915.53
7.3.110.0110.00615.39
7.3.100.0100.00615.54
7.3.90.0070.01015.63
7.3.80.0090.00615.56
7.3.70.0080.00715.29
7.3.60.0090.00715.32
7.3.50.0060.01015.29
7.3.40.0090.00615.33
7.3.30.0080.00715.37
7.3.20.0110.00616.07
7.3.10.0080.00916.11
7.3.00.0130.00416.08
7.2.340.0070.00714.79
7.2.330.0140.00415.36
7.2.320.0110.00715.39
7.2.310.0110.00615.27
7.2.300.0170.00315.43
7.2.290.0130.00715.62
7.2.280.0150.00415.62
7.2.270.0120.00715.67
7.2.260.0100.00815.55
7.2.250.0100.01015.62
7.2.240.0120.00915.56
7.2.230.0120.00815.63
7.2.220.0120.00715.53
7.2.210.0120.00515.64
7.2.200.0080.01015.53
7.2.190.0100.00815.51
7.2.180.0140.00515.50
7.2.170.0100.00615.50
7.2.160.0100.00715.44
7.2.150.0120.00816.27
7.2.140.0070.01216.26
7.2.130.0130.01016.36
7.2.120.0130.00616.29
7.2.110.0250.00615.88
7.2.100.0120.00915.98
7.2.90.0450.00715.96
7.2.80.0880.00515.92
7.2.70.0740.00915.89
7.2.60.0760.00515.85
7.2.50.0700.00815.91
7.2.40.0650.00915.97
7.2.30.0730.00815.94
7.2.20.0850.00815.89
7.2.10.0820.00615.96
7.2.00.0830.01015.83
7.1.330.0220.00815.22
7.1.320.0160.00715.25
7.1.310.0200.00615.08
7.1.300.0140.00715.35
7.1.290.0130.00715.25
7.1.280.0120.00715.27
7.1.270.0140.00815.33
7.1.260.0140.00515.29
7.1.250.0140.00615.32
7.1.240.0290.00415.28
7.1.230.0300.00815.01
7.1.220.0440.00415.05
7.1.210.0200.00515.06
7.1.200.0840.00815.12
7.1.190.0800.00615.10
7.1.180.0900.00714.99
7.1.170.0620.01014.85
7.1.160.0700.00814.89
7.1.150.0780.00614.91
7.1.140.1000.00414.86
7.1.130.1060.00814.78
7.1.120.0850.00814.91
7.1.110.0840.00914.85
7.1.100.0870.00614.84
7.1.90.0410.00814.92
7.1.80.0370.00614.87
7.1.70.0440.00614.86
7.1.60.0430.00919.99
7.1.50.0600.00620.00
7.1.40.0450.01120.03
7.1.30.0570.00719.90
7.1.20.0440.00819.88
7.1.10.0300.00814.81
7.1.00.0400.00614.57
7.0.330.0110.00814.87
7.0.320.0080.01015.34
7.0.310.0150.00515.36
7.0.300.0110.01015.39
7.0.290.0130.00415.42
7.0.280.0130.00515.42
7.0.270.0180.00615.36
7.0.260.0120.00515.41
7.0.250.0140.00415.46
7.0.240.0090.01015.43
7.0.230.0110.00715.34
7.0.220.0100.00915.42
7.0.210.0140.00715.30
7.0.200.0130.00515.30
7.0.190.0120.00815.27
7.0.180.0160.00715.23
7.0.170.0140.00615.36
7.0.160.0130.00615.27
7.0.150.0110.00715.35
7.0.140.0090.01115.27
7.0.130.0140.00714.92
7.0.120.0160.00614.99
7.0.110.0110.00714.92
7.0.100.0120.00814.89
7.0.90.0250.00314.78
7.0.80.0230.00814.86
7.0.70.0120.00714.83
7.0.60.0130.00614.86
7.0.50.0140.00414.75
7.0.40.0110.00814.89
7.0.30.0170.00514.88
7.0.20.0110.00914.80
7.0.10.0120.00714.86
7.0.00.0110.00714.83
5.6.400.0140.00714.90
5.6.390.0130.00715.02
5.6.380.0120.00914.74
5.6.370.0100.01015.08
5.6.360.0120.00915.14
5.6.350.0130.00814.99
5.6.340.0120.00815.17
5.6.330.0110.00815.10
5.6.320.0120.00815.07
5.6.310.0100.01015.07
5.6.300.0110.01215.02
5.6.290.0120.00815.03
5.6.280.0070.01415.02
5.6.270.0140.00715.08
5.6.260.0080.01315.15
5.6.250.0120.00815.14
5.6.240.0090.00915.07
5.6.230.0120.01115.02
5.6.220.0120.01015.09
5.6.210.0100.00815.03
5.6.200.0070.01115.08
5.6.190.0090.00915.12
5.6.180.0080.01215.10
5.6.170.0130.00615.11
5.6.160.0120.00915.17
5.6.150.0100.01015.12
5.6.140.0090.01015.09
5.6.130.0100.00915.11
5.6.120.0130.00615.10
5.6.110.0100.00815.00
5.6.100.0090.01015.02
5.6.90.0100.01015.03
5.6.80.0090.01015.01
5.6.70.0140.00915.08
5.6.60.0090.01115.09
5.6.50.0100.00815.02
5.6.40.0120.00814.95
5.6.30.0120.00614.88
5.6.20.0110.00914.97
5.6.10.0140.00514.94
5.6.00.0110.01015.09

preferences:
26.62 ms | 403 KiB | 5 Q