3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bla = ''; public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo2(); $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.0120.00316.88
8.3.50.0120.00316.50
8.3.40.0090.00918.79
8.3.30.0070.00718.71
8.3.20.0040.00420.21
8.3.10.0080.00021.73
8.3.00.0040.00421.75
8.2.170.0100.01019.04
8.2.160.0120.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00821.02
8.2.120.0000.00726.35
8.2.110.0030.00621.18
8.2.100.0110.00017.78
8.2.90.0050.00318.85
8.2.80.0040.00417.97
8.2.70.0030.00617.48
8.2.60.0030.00517.80
8.2.50.0030.00918.09
8.2.40.0000.00922.33
8.2.30.0040.00419.38
8.2.20.0000.00717.56
8.2.10.0040.00417.91
8.2.00.0040.00418.02
8.1.270.0050.00322.04
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0070.00423.79
8.1.230.0110.00022.76
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00317.36
8.1.180.0000.00918.10
8.1.170.0070.00018.50
8.1.160.0030.00520.61
8.1.150.0040.00418.71
8.1.140.0040.00419.57
8.1.130.0050.00317.66
8.1.120.0000.00717.30
8.1.110.0000.00717.36
8.1.100.0070.00017.43
8.1.90.0040.00417.36
8.1.80.0050.00517.39
8.1.70.0000.00717.38
8.1.60.0000.00717.60
8.1.50.0040.00417.53
8.1.40.0050.00317.42
8.1.30.0080.00017.64
8.1.20.0030.00617.55
8.1.10.0050.00217.57
8.1.00.0000.00817.53
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0000.00718.39
8.0.270.0040.00417.13
8.0.260.0000.00917.17
8.0.250.0070.00016.97
8.0.240.0000.00816.96
8.0.230.0000.00716.97
8.0.220.0000.01016.89
8.0.210.0000.00716.89
8.0.200.0030.00716.93
8.0.190.0000.00716.89
8.0.180.0040.00416.96
8.0.170.0000.00716.81
8.0.160.0040.00416.96
8.0.150.0000.00716.89
8.0.140.0050.00516.80
8.0.130.0000.00513.26
8.0.120.0000.00816.81
8.0.110.0000.00716.82
8.0.100.0040.00416.74
8.0.90.0000.00716.95
8.0.80.0090.00616.81
8.0.70.0040.00416.78
8.0.60.0000.00716.82
8.0.50.0000.00716.81
8.0.30.0060.01317.19
8.0.20.0050.01317.40
8.0.10.0000.00816.89
8.0.00.0120.00516.74
7.4.330.0050.00016.76
7.4.320.0000.00716.44
7.4.300.0030.00316.52
7.4.290.0030.00316.65
7.4.280.0000.00816.50
7.4.270.0030.00316.62
7.4.260.0000.00716.58
7.4.250.0090.00016.46
7.4.240.0040.00416.60
7.4.230.0040.00416.37
7.4.220.0090.00916.52
7.4.210.0090.00616.57
7.4.200.0040.00416.51
7.4.160.0100.00616.71
7.4.150.0090.00917.40
7.4.140.0100.01517.86
7.4.130.0090.00816.48
7.4.120.0100.00816.48
7.4.110.0150.00316.46
7.4.100.0140.00416.46
7.4.90.0110.00616.49
7.4.80.0120.00619.39
7.4.70.0100.00716.42
7.4.60.0060.01116.67
7.4.50.0070.01016.60
7.4.40.0150.00016.54
7.4.30.0090.00916.50
7.4.10.0120.00314.90
7.4.00.0100.00614.90
7.3.330.0000.00513.37
7.3.320.0030.00313.32
7.3.310.0030.00316.34
7.3.300.0000.00716.31
7.3.290.0080.00716.38
7.3.280.0100.00716.36
7.3.270.0060.01217.40
7.3.260.0040.01316.34
7.3.250.0080.00816.46
7.3.240.0050.01216.24
7.3.230.0130.00416.39
7.3.210.0090.00916.38
7.3.200.0120.00619.39
7.3.190.0100.00716.27
7.3.180.0060.01216.48
7.3.170.0090.01416.32
7.3.160.0130.00316.43
7.3.130.0000.01714.87
7.3.120.0050.01314.63
7.3.110.0100.00914.79
7.3.100.0070.01014.76
7.3.90.0080.00814.80
7.3.80.0080.00614.85
7.3.70.0020.01314.80
7.3.60.0080.00514.82
7.3.50.0060.00814.64
7.3.40.0040.01214.73
7.3.30.0020.01114.89
7.3.20.0030.00916.61
7.3.10.0030.00916.63
7.3.00.0050.00716.64
7.2.330.0070.01116.34
7.2.320.0110.00716.63
7.2.310.0100.01316.76
7.2.300.0090.00916.75
7.2.290.0130.01416.52
7.2.260.0070.01115.14
7.2.250.0100.00715.10
7.2.240.0080.00814.87
7.2.230.0060.00714.79
7.2.220.0080.00815.09
7.2.210.0070.00814.97
7.2.200.0110.00514.99
7.2.190.0050.00914.88
7.2.180.0080.00814.97
7.2.170.0050.00915.09
7.2.160.0040.01414.89
7.2.150.0030.01616.91
7.2.140.0030.01016.94
7.2.130.0000.01416.99
7.2.120.0120.00016.98
7.2.110.0060.00916.93
7.2.100.0000.01816.88
7.2.90.0100.00717.03
7.2.80.0040.01216.90
7.2.70.0000.00916.95
7.2.60.0060.00516.91
7.2.50.0030.01017.03
7.2.40.0060.01116.97
7.2.30.0070.01017.10
7.2.20.0000.00916.99
7.2.10.0030.00716.98
7.2.00.0030.01318.15
7.1.330.0080.00615.72
7.1.320.0050.01115.85
7.1.310.0080.00715.77
7.1.300.0050.00815.80
7.1.290.0080.00815.73
7.1.280.0070.00615.65
7.1.270.0080.00815.63
7.1.260.0050.00515.74
7.1.250.0070.00715.79
7.1.240.0000.01415.81
7.1.230.0070.01015.69
7.1.220.0060.01215.85
7.1.210.0080.00315.86
7.1.200.0020.00915.76
7.1.190.0100.00315.85
7.1.180.0000.00815.75
7.1.170.0060.00315.63
7.1.160.0030.00615.75
7.1.150.0000.01215.54
7.1.140.0070.00715.82
7.1.130.0070.00715.53
7.1.120.0100.00715.72
7.1.110.0040.00415.95
7.1.100.0030.00916.96
7.1.90.0090.00315.66
7.1.80.0100.00715.75
7.1.70.0080.00416.42
7.1.60.0100.01017.56
7.1.50.0050.00716.24
7.1.40.0070.00715.48
7.1.30.0060.01015.78
7.1.20.0000.01315.73
7.1.10.0000.01515.71
7.1.00.0050.04019.15
7.0.330.0060.00315.29
7.0.320.0030.00615.53
7.0.310.0030.00515.45
7.0.300.0030.01015.25
7.0.290.0000.00815.48
7.0.280.0060.00315.41
7.0.270.0030.01015.64
7.0.260.0030.00515.47
7.0.250.0040.00715.39
7.0.240.0030.00715.54
7.0.230.0030.01015.48
7.0.220.0060.00915.43
7.0.210.0040.01115.45
7.0.200.0890.00815.06
7.0.190.0100.00315.57
7.0.180.0060.00315.12
7.0.170.0070.00715.65
7.0.160.0000.01315.25
7.0.150.0150.00315.36
7.0.140.0060.01215.32
7.0.130.0040.00715.35
7.0.120.0070.00715.29
7.0.110.0070.00415.39
7.0.100.0110.00315.45
7.0.90.0000.00915.49
7.0.80.0090.00615.23
7.0.70.0090.00915.24
7.0.60.0100.04718.54
7.0.50.0050.03316.70
7.0.40.0070.04316.63
7.0.30.0130.02816.73
7.0.20.0170.04016.88
7.0.10.0050.03416.88
7.0.00.0050.04816.73
5.6.400.0040.00814.05
5.6.390.0040.01114.32
5.6.380.0040.00814.57
5.6.370.0060.00814.39
5.6.360.0080.00614.58
5.6.350.0030.01214.27
5.6.340.0060.00614.51
5.6.330.0100.00614.52
5.6.320.0080.00414.03
5.6.310.0000.01014.47
5.6.300.0090.00314.42
5.6.290.0030.00914.11
5.6.280.0000.01814.51
5.6.270.0040.01114.39
5.6.260.0070.01314.23
5.6.250.0030.01614.70
5.6.240.0070.00714.43
5.6.230.0000.01714.41
5.6.220.0090.01014.29
5.6.210.0080.03017.54
5.6.200.0100.04216.30
5.6.190.0080.02817.55
5.6.180.0190.03317.51
5.6.170.0100.02817.57
5.6.160.0080.02317.54
5.6.150.0080.04316.42
5.6.140.0080.02216.22
5.6.130.0060.03216.33
5.6.120.0100.02017.61
5.6.110.0050.04217.79
5.6.100.0070.04517.66
5.6.90.0080.04617.69
5.6.80.0020.03817.21
5.6.70.0030.00914.33
5.6.60.0100.00314.40
5.6.50.0030.01414.54
5.6.40.0060.00314.40
5.6.30.0000.01314.09
5.6.20.0100.00314.48
5.6.10.0100.00314.52
5.6.00.0150.00014.33
5.5.380.0040.01114.02
5.5.370.0120.00614.44
5.5.360.0080.00814.24
5.5.350.0100.03617.44
5.5.340.0050.04816.08
5.5.330.0090.02517.31
5.5.320.0130.04517.37
5.5.310.0230.02317.42
5.5.300.0100.02216.26
5.5.290.0050.04716.09
5.5.280.0080.03017.61
5.5.270.0090.03817.46
5.5.260.0030.03617.39
5.5.250.0060.02217.48
5.5.240.0080.04217.25
5.5.230.0060.00614.05
5.5.220.0100.00714.07
5.5.210.0060.00314.07
5.5.200.0000.01314.07
5.5.190.0000.00814.13
5.5.180.0030.01414.24
5.5.170.0030.01214.30
5.5.160.0040.00714.09
5.5.150.0090.00614.02
5.5.140.0070.00714.12
5.5.130.0100.00014.16
5.5.120.0000.01014.13
5.5.110.0000.01014.07
5.5.100.0000.00814.04
5.5.90.0030.00714.12
5.5.80.0140.00014.27
5.5.70.0030.01014.41
5.5.60.0040.00414.33
5.5.50.0090.00414.18
5.5.40.0030.00714.44
5.5.30.0030.01314.45
5.5.20.0000.01114.36
5.5.10.0110.00314.29
5.5.00.0000.00914.24

preferences:
74.3 ms | 400 KiB | 5 Q