3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { } class Bar { private $foo; public function __construct(Foo $foo) { $this->foo = $foo; } } $bar = new Bar(null);

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.0170.00016.75
8.3.50.0110.01122.11
8.3.40.0060.00918.81
8.3.30.0110.00418.84
8.3.20.0060.00320.25
8.3.10.0120.00623.42
8.3.00.0050.00319.50
8.2.180.0150.00618.06
8.2.170.0030.01322.96
8.2.160.0120.00320.38
8.2.150.0080.00024.18
8.2.140.0000.01424.66
8.2.130.0070.01126.16
8.2.120.0000.00917.50
8.2.110.0060.00320.51
8.2.100.0060.00617.80
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00317.93
8.2.50.0000.01018.07
8.2.40.0000.00719.09
8.2.30.0040.00420.49
8.2.20.0030.00517.55
8.2.10.0020.00517.97
8.2.00.0050.00217.90
8.1.280.0130.00625.92
8.1.270.0040.00423.88
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.37
8.1.230.0040.00717.66
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.59
8.1.160.0030.00521.92
8.1.150.0040.00418.76
8.1.140.0050.00319.37
8.1.130.0030.00517.48
8.1.120.0000.00717.27
8.1.110.0040.00417.32
8.1.100.0040.00417.25
8.1.90.0030.00317.21
8.1.80.0030.00617.26
8.1.70.0030.00317.31
8.1.60.0040.00417.41
8.1.50.0000.00817.50
8.1.40.0000.00717.45
8.1.30.0070.00317.57
8.1.20.0040.00417.63
8.1.10.0080.00017.39
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.45
8.0.270.0030.00317.13
8.0.260.0030.00317.15
8.0.250.0040.00416.85
8.0.240.0000.00816.90
8.0.230.0040.00416.84
8.0.220.0030.00316.88
8.0.210.0000.00716.84
8.0.200.0030.00316.81
8.0.190.0060.00317.01
8.0.180.0040.00416.80
8.0.170.0040.00416.89
8.0.160.0080.00016.82
8.0.150.0000.00716.75
8.0.140.0030.00516.79
8.0.130.0060.00013.39
8.0.120.0000.00816.84
8.0.110.0040.00416.75
8.0.100.0070.00016.88
8.0.90.0080.00016.92
8.0.80.0140.00016.94
8.0.70.0050.00316.86
8.0.60.0050.00316.82
8.0.50.0000.00816.89
8.0.30.0130.00617.06
8.0.20.0080.01017.40
8.0.10.0040.00416.82
8.0.00.0080.01016.74
7.4.330.0050.00015.08
7.4.320.0060.00016.36
7.4.300.0030.00316.55
7.4.290.0040.00416.42
7.4.280.0030.00716.57
7.4.270.0040.00416.48
7.4.260.0000.00716.44
7.4.250.0040.00416.44
7.4.240.0020.00516.38
7.4.230.0030.00316.60
7.4.220.0060.01216.53
7.4.210.0120.00316.38
7.4.200.0070.00016.63
7.4.160.0090.00616.40
7.4.150.0100.01317.40
7.4.140.0110.00717.86
7.4.130.0140.00916.37
7.4.120.0120.00716.48
7.4.110.0060.01216.56
7.4.100.0060.01616.44
7.4.90.0110.00616.46
7.4.80.0160.00619.39
7.4.70.0090.00916.41
7.4.60.0090.00616.51
7.4.50.0060.00316.43
7.4.40.0050.01616.43
7.4.30.0110.00816.40
7.4.10.0100.01014.74
7.4.00.0050.01114.91
7.3.330.0000.00513.35
7.3.320.0000.00513.36
7.3.310.0000.00716.17
7.3.300.0060.00016.31
7.3.290.0070.00716.35
7.3.280.0050.01216.35
7.3.270.0120.00617.40
7.3.260.0160.00316.26
7.3.250.0100.00716.36
7.3.240.0090.00816.42
7.3.230.0130.00316.39
7.3.210.0100.00716.43
7.3.200.0070.01016.56
7.3.190.0030.01316.42
7.3.180.0080.00816.43
7.3.170.0100.01116.66
7.3.160.0070.01016.47
7.3.130.0090.00914.81
7.3.120.0110.00514.94
7.3.110.0070.01114.71
7.3.100.0060.00614.92
7.3.90.0000.01314.67
7.3.80.0080.00414.98
7.3.70.0100.00314.57
7.3.60.0060.01114.71
7.3.50.0000.01214.81
7.3.40.0100.00314.61
7.3.30.0030.00814.79
7.3.20.0080.00316.65
7.3.10.0090.00316.62
7.3.00.0060.00916.56
7.2.330.0100.00716.61
7.2.320.0090.00916.50
7.2.310.0100.00616.29
7.2.300.0030.01716.23
7.2.290.0070.01416.46
7.2.260.0100.01015.04
7.2.250.0040.01515.09
7.2.240.0090.00614.80
7.2.230.0060.00914.83
7.2.220.0060.01014.75
7.2.210.0060.00314.66
7.2.200.0040.01114.61
7.2.190.0050.00514.73
7.2.180.0070.00714.62
7.2.170.0090.00914.93
7.2.160.0060.00614.66
7.2.150.0030.00616.64
7.2.140.0060.00316.40
7.2.130.0000.01316.88
7.2.120.0120.00316.79
7.2.110.0030.00616.82
7.2.100.0070.00716.71
7.2.90.0030.01216.91
7.2.80.0090.00616.61
7.2.70.0070.00716.80
7.2.60.0080.00716.77
7.2.50.0060.01216.79
7.2.40.0120.00016.73
7.2.30.0070.01016.73
7.2.20.0040.00816.56
7.2.10.0060.00616.89
7.2.00.0080.00917.87
7.1.330.0070.00715.66
7.1.320.0000.01615.71
7.1.310.0060.00615.72
7.1.300.0030.00915.63
7.1.290.0040.00815.80
7.1.280.0030.00615.49
7.1.270.0000.00915.71
7.1.260.0040.00815.70
7.1.250.0030.01115.66
7.1.240.0030.00915.30
7.1.230.0030.01015.72
7.1.220.0090.00315.71
7.1.210.0070.00415.63
7.1.200.0060.00815.61
7.1.190.0000.01215.74
7.1.180.0040.01115.43
7.1.170.0090.00915.54
7.1.160.0000.01315.43
7.1.150.0090.00615.61
7.1.140.0030.01015.64
7.1.130.0000.01315.59
7.1.120.0050.00515.73
7.1.110.0000.00815.78
7.1.100.0090.00615.54
7.1.90.0090.00615.75
7.1.80.0110.00015.70
7.1.70.0060.01016.32
7.1.60.0100.00516.33
7.1.50.0080.00916.17
7.1.40.0070.00715.54
7.1.30.0040.00715.47
7.1.20.0030.01015.45
7.1.10.0060.00615.77
7.1.00.0030.04118.96
7.0.330.0100.00715.42
7.0.320.0000.01115.33
7.0.310.0060.00915.43
7.0.300.0090.00615.39
7.0.290.0070.00715.19
7.0.280.0000.01715.35
7.0.270.0030.01015.12
7.0.260.0070.00715.20
7.0.250.0060.00615.41
7.0.240.0040.01115.39
7.0.230.0110.00315.09
7.0.220.0040.00815.11
7.0.210.0000.00915.47
7.0.200.0020.00615.98
7.0.190.0100.00315.31
7.0.180.0040.00415.48
7.0.170.0030.00915.36
7.0.160.0030.00915.26
7.0.150.0070.00715.09
7.0.140.0040.01115.09
7.0.130.0090.00615.08
7.0.120.0070.00715.32
7.0.110.0070.00715.17
7.0.100.0110.00415.18
7.0.90.0050.00315.51
7.0.80.0000.01515.51
7.0.70.0100.00715.36
7.0.60.0080.04317.57
7.0.50.0030.02716.64
7.0.40.0080.02316.86
7.0.30.0030.03616.72
7.0.20.0200.04216.69
7.0.10.0050.04816.68
7.0.00.0100.02016.73
5.6.400.0100.00314.27
5.6.390.0070.01014.49
5.6.380.0060.00314.21
5.6.370.0000.01014.23
5.6.360.0000.01114.37
5.6.350.0060.00914.33
5.6.340.0000.01014.28
5.6.330.0060.00614.17
5.6.320.0040.01113.92
5.6.310.0030.01014.18
5.6.300.0070.00314.48
5.6.290.0030.00913.93
5.6.280.0050.02017.60
5.6.270.0040.00814.03
5.6.260.0040.01114.35
5.6.250.0100.00314.25
5.6.240.0040.00714.45
5.6.230.0090.00614.54
5.6.220.0090.00014.35
5.6.210.0110.04217.54
5.6.200.0070.02816.20
5.6.190.0140.03817.26
5.6.180.0070.04717.50
5.6.170.0110.03217.40
5.6.160.0100.04017.29
5.6.150.0070.04316.31
5.6.140.0100.04016.28
5.6.130.0020.02916.25
5.6.120.0020.05017.70
5.6.110.0120.03317.56
5.6.100.0030.02517.64
5.6.90.0030.02317.59
5.6.80.0080.01817.15
5.6.70.0070.00714.18
5.6.60.0090.00614.26
5.6.50.0120.00314.18
5.6.40.0000.01114.02
5.6.30.0040.00414.00
5.6.20.0000.01114.00
5.6.10.0030.01113.86
5.6.00.0070.00714.43
5.5.380.0070.00714.03
5.5.370.0000.01114.09
5.5.360.0060.01013.82
5.5.350.0220.04017.19
5.5.340.0080.02115.91
5.5.330.0100.03517.04
5.5.320.0130.02317.27
5.5.310.0200.03017.34
5.5.300.0050.02416.04
5.5.290.0060.02116.07
5.5.280.0020.04317.57
5.5.270.0100.04117.46
5.5.260.0060.02517.48
5.5.250.0090.02217.24
5.5.240.0050.04517.07
5.5.230.0060.00314.00
5.5.220.0040.01114.21
5.5.210.0090.00614.04
5.5.200.0090.00613.86
5.5.190.0100.00314.01
5.5.180.0070.00713.82
5.5.170.0030.00714.13
5.5.160.0060.00614.27
5.5.150.0000.01614.18
5.5.140.0030.01314.29
5.5.130.0000.01213.90
5.5.120.0070.00314.09
5.5.110.0070.00714.39
5.5.100.0040.01213.86
5.5.90.0030.01014.12
5.5.80.0040.01114.22
5.5.70.0060.01013.91
5.5.60.0070.01113.93
5.5.50.0000.01213.95
5.5.40.0030.01014.18
5.5.30.0000.01513.83
5.5.20.0090.00613.67
5.5.10.0030.01014.02
5.5.00.0060.00313.93
5.4.450.0140.02815.42
5.4.440.0100.03615.26
5.4.430.0070.03015.20
5.4.420.0050.03215.39
5.4.410.0270.03315.35
5.4.400.0200.02815.26
5.4.390.0020.03315.10
5.4.380.0310.02715.11
5.4.370.0360.03315.09
5.4.360.0110.02815.21
5.4.350.0300.02715.23
5.4.340.0270.03315.18
5.4.330.0040.00411.21
5.4.320.0320.03115.11
5.4.310.0300.03415.04
5.4.300.0380.03215.02
5.4.290.0320.03415.25
5.4.280.0330.03115.16
5.4.270.0420.02715.23
5.4.260.0300.03915.24
5.4.250.0330.03415.11
5.4.240.0400.03315.18
5.4.230.0350.03615.28
5.4.220.0350.03015.02
5.4.210.0370.03315.29
5.4.200.0440.02715.18
5.4.190.0410.03315.03
5.4.180.0370.03215.17
5.4.170.0410.02615.18
5.4.160.0450.02915.03
5.4.150.0420.03015.13
5.4.140.0420.02813.87
5.4.130.0350.03113.79
5.4.120.0470.02613.79
5.4.110.0350.03713.95
5.4.100.0300.03113.94
5.4.90.0330.03013.94
5.4.80.0360.03113.89
5.4.70.0400.02813.89
5.4.60.0350.03213.91
5.4.50.0330.03013.90
5.4.40.0280.03013.70
5.4.30.0400.02513.80
5.4.20.0320.03213.90
5.4.10.0390.03513.88
5.4.00.0270.03513.59

preferences:
71.91 ms | 401 KiB | 5 Q