3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->blub = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo(); $blubb("bl0a"); var_dump($blubb);

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.63
8.3.50.0140.00421.16
8.3.40.0030.01418.88
8.3.30.0110.00418.68
8.3.20.0040.00420.16
8.3.10.0050.00321.92
8.3.00.0080.00021.60
8.2.180.0090.00618.41
8.2.170.0070.01122.96
8.2.160.0060.00920.52
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00721.06
8.2.120.0050.00226.35
8.2.110.0030.00620.57
8.2.100.0110.00017.93
8.2.90.0060.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0050.00518.09
8.2.40.0040.00422.20
8.2.30.0040.00419.38
8.2.20.0040.00417.69
8.2.10.0070.00018.04
8.2.00.0000.00718.02
8.1.280.0110.00425.92
8.1.270.0030.00622.08
8.1.260.0030.00628.09
8.1.250.0050.00228.09
8.1.240.0150.00320.96
8.1.230.0080.00317.70
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.34
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0040.00420.71
8.1.150.0060.00320.67
8.1.140.0000.00819.50
8.1.130.0000.00717.64
8.1.120.0000.00717.38
8.1.110.0040.00417.38
8.1.100.0030.00517.30
8.1.90.0040.00417.40
8.1.80.0050.00517.45
8.1.70.0050.00217.26
8.1.60.0050.00217.59
8.1.50.0050.00517.52
8.1.40.0050.00317.56
8.1.30.0000.00817.67
8.1.20.0030.00617.63
8.1.10.0030.00517.55
8.1.00.0000.00717.36
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.32
8.0.270.0000.00717.24
8.0.260.0040.00417.29
8.0.250.0040.00417.00
8.0.240.0000.00716.94
8.0.230.0070.00016.88
8.0.220.0070.00316.93
8.0.210.0030.00316.80
8.0.200.0100.00016.94
8.0.190.0040.00416.83
8.0.180.0040.00416.93
8.0.170.0040.00416.85
8.0.160.0070.00016.81
8.0.150.0040.00416.86
8.0.140.0070.00316.79
8.0.130.0000.00513.30
8.0.120.0040.00416.88
8.0.110.0000.00716.82
8.0.100.0070.00016.72
8.0.90.0040.00416.89
8.0.80.0060.00916.84
8.0.70.0040.00416.88
8.0.60.0030.00416.87
8.0.50.0070.00016.83
8.0.30.0100.00817.04
8.0.20.0120.00717.40
8.0.10.0040.00417.13
8.0.00.0080.00916.71
7.4.330.0050.00016.89
7.4.320.0040.00416.43
7.4.300.0030.00316.65
7.4.290.0070.00016.53
7.4.280.0080.00016.51
7.4.270.0030.00416.42
7.4.260.0070.00016.47
7.4.250.0000.00816.55
7.4.240.0050.00216.50
7.4.230.0030.00316.53
7.4.220.0100.01016.53
7.4.210.0060.01016.51
7.4.200.0000.00716.41
7.4.160.0060.00916.66
7.4.150.0090.01017.40
7.4.140.0140.00817.86
7.4.130.0110.00716.45
7.4.120.0130.00616.52
7.4.110.0150.00316.43
7.4.100.0130.01016.48
7.4.90.0060.01116.44
7.4.80.0140.00719.39
7.4.70.0110.00616.57
7.4.60.0130.00316.56
7.4.50.0090.00316.47
7.4.40.0040.01316.36
7.4.30.0060.01616.43
7.4.10.0060.01115.00
7.4.00.0070.01115.03
7.3.330.0030.00313.34
7.3.320.0000.00513.18
7.3.310.0060.00016.25
7.3.300.0030.00316.35
7.3.290.0070.00716.34
7.3.280.0090.01016.36
7.3.270.0000.02417.40
7.3.260.0330.03316.31
7.3.250.0090.00916.46
7.3.240.0150.00216.34
7.3.230.0090.00916.46
7.3.210.0040.01516.37
7.3.200.0060.01119.39
7.3.190.0150.00616.31
7.3.180.0160.00616.32
7.3.170.0030.01616.58
7.3.160.0170.00016.56
7.3.130.0030.01314.73
7.3.120.0070.00714.53
7.3.110.0080.00814.98
7.3.100.0140.00014.72
7.3.90.0060.00914.87
7.3.80.0050.00515.13
7.3.70.0110.00414.61
7.3.60.0000.01014.68
7.3.50.0000.01414.68
7.3.40.0060.00914.59
7.3.30.0040.00714.65
7.3.20.0030.00916.66
7.3.10.0030.01316.61
7.3.00.0060.00916.79
7.2.330.0120.00616.78
7.2.320.0060.01916.79
7.2.310.0110.00816.39
7.2.300.0080.01116.66
7.2.290.0090.01316.82
7.2.260.0070.01314.95
7.2.250.0090.00914.61
7.2.240.0000.01514.97
7.2.230.0030.01314.86
7.2.220.0060.00914.62
7.2.210.0040.00815.05
7.2.200.0060.00915.16
7.2.190.0060.00614.98
7.2.180.0040.00714.61
7.2.170.0000.01414.91
7.2.160.0030.01015.14
7.2.150.0030.00716.98
7.2.140.0040.01216.69
7.2.130.0060.00616.94
7.2.120.0070.01117.00
7.2.110.0000.01416.96
7.2.100.0070.00716.80
7.2.90.0070.01016.92
7.2.80.0040.01116.95
7.2.70.0070.00316.72
7.2.60.0050.00816.98
7.2.50.0040.00716.79
7.2.40.0000.01317.03
7.2.30.0030.01116.80
7.2.20.0060.00916.97
7.2.10.0040.00716.89
7.2.00.0020.01218.10
7.1.330.0150.00015.82
7.1.320.0030.00915.79
7.1.310.0040.00815.76
7.1.300.0030.00815.54
7.1.290.0030.01215.71
7.1.280.0070.00715.70
7.1.270.0030.00715.45
7.1.260.0140.00015.56
7.1.250.0070.00715.44
7.1.240.0070.00415.70
7.1.230.0090.00315.79
7.1.220.0030.01015.41
7.1.210.0030.00915.66
7.1.200.0030.00815.52
7.1.190.0000.01315.66
7.1.180.0090.00315.81
7.1.170.0000.00915.66
7.1.160.0060.00315.72
7.1.150.0000.00815.43
7.1.140.0030.01215.86
7.1.130.0100.00315.84
7.1.120.0080.00415.57
7.1.110.0070.00715.46
7.1.100.0040.00916.84
7.1.90.0030.01415.65
7.1.80.0100.00315.73
7.1.70.0050.00916.42
7.1.60.0090.01117.55
7.1.50.0040.01116.29
7.1.40.0040.01115.82
7.1.30.0030.01015.63
7.1.20.0030.00715.86
7.1.10.0040.00715.55
7.1.00.0030.04319.09
7.0.330.0080.00415.54
7.0.320.0080.00415.52
7.0.310.0060.00615.16
7.0.300.0000.01215.17
7.0.290.0060.00615.38
7.0.280.0030.01315.40
7.0.270.0030.00915.14
7.0.260.0030.01015.29
7.0.250.0080.00815.20
7.0.240.0110.00315.51
7.0.230.0130.00015.24
7.0.220.0030.00715.30
7.0.210.0040.00915.52
7.0.200.0300.00414.78
7.0.190.0040.00715.38
7.0.180.0110.00015.12
7.0.170.0070.00715.22
7.0.160.0040.00415.43
7.0.150.0090.00315.25
7.0.140.0060.00915.44
7.0.130.0060.00615.01
7.0.120.0030.00615.43
7.0.110.0000.00815.45
7.0.100.0000.01215.41
7.0.90.0040.00815.12
7.0.80.0130.00315.29
7.0.70.0060.00915.44
7.0.60.0140.03518.46
7.0.50.0040.04516.54
7.0.40.0080.03216.78
7.0.30.0280.03716.75
7.0.20.0250.03316.80
7.0.10.0070.04516.82
7.0.00.0100.04516.64
5.6.400.0030.00913.98
5.6.390.0070.00714.31
5.6.380.0040.00814.65
5.6.370.0060.00614.32
5.6.360.0060.00614.31
5.6.350.0090.00614.70
5.6.340.0090.00914.16
5.6.330.0060.00314.41
5.6.320.0060.00914.31
5.6.310.0080.00414.25
5.6.300.0000.01714.45
5.6.290.0000.01014.40
5.6.280.0060.00914.49
5.6.270.0030.00614.54
5.6.260.0030.00714.59
5.6.250.0000.01214.21
5.6.240.0090.00314.38
5.6.230.0060.00914.32
5.6.220.0090.00014.29
5.6.210.0050.04517.44
5.6.200.0150.03816.38
5.6.190.0070.04517.38
5.6.180.0190.03017.37
5.6.170.0150.02717.35
5.6.160.0100.03217.43
5.6.150.0050.03116.39
5.6.140.0150.02916.42
5.6.130.0040.04816.17
5.6.120.0100.03317.64
5.6.110.0070.04017.65
5.6.100.0080.02217.73
5.6.90.0100.04317.69
5.6.80.0080.03317.57
5.6.70.0070.00414.05
5.6.60.0000.01614.39
5.6.50.0000.01714.10
5.6.40.0100.00614.14
5.6.30.0000.01214.49
5.6.20.0030.01314.13
5.6.10.0140.00014.11
5.6.00.0030.00614.13
5.5.380.0040.01114.05
5.5.370.0060.00614.36
5.5.360.0040.00414.46
5.5.350.0030.03617.42
5.5.340.0100.04216.11
5.5.330.0080.02617.21
5.5.320.0390.03017.33
5.5.310.0210.04017.08
5.5.300.0030.04716.18
5.5.290.0090.04115.96
5.5.280.0110.02617.65
5.5.270.0090.03217.63
5.5.260.0090.04217.43
5.5.250.0030.02317.27
5.5.240.0120.02217.29
5.5.230.0120.00314.19
5.5.220.0000.01113.87
5.5.210.0030.00714.21
5.5.200.0040.01114.06
5.5.190.0060.00613.86
5.5.180.0000.01414.05
5.5.170.0100.00314.28
5.5.160.0040.00814.32
5.5.150.0040.01114.33
5.5.140.0070.01013.72
5.5.130.0060.00614.23
5.5.120.0110.00314.22
5.5.110.0030.01314.03
5.5.100.0000.01014.36
5.5.90.0120.00314.25
5.5.80.0040.01113.97
5.5.70.0040.01114.18
5.5.60.0000.01314.21
5.5.50.0050.00513.98
5.5.40.0070.00714.23
5.5.30.0030.00914.26
5.5.20.0040.00713.75
5.5.10.0060.00314.08
5.5.00.0090.00614.21

preferences:
102.93 ms | 401 KiB | 5 Q