3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo; function __construct($foo) { $this->foo = $foo; } function modify($foo) { $o = clone $this; $o::__construct($foo); return $o; } function getFoo() { return $this->foo; } } $f = new Foo("foo"); var_dump($f->getFoo()); var_dump($f->modify("bar"));

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.0070.00718.30
8.3.50.0100.00822.10
8.3.40.0070.00718.81
8.3.30.0110.00420.04
8.3.20.0080.00018.75
8.3.10.0070.00020.96
8.3.00.0080.00019.56
8.2.180.0190.00018.29
8.2.170.0110.00722.96
8.2.160.0000.01420.38
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00821.04
8.2.110.0030.00720.52
8.2.100.0060.00619.64
8.2.90.0040.00418.09
8.2.80.0040.00419.34
8.2.70.0050.00317.34
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0050.00319.82
8.2.30.0030.00619.39
8.2.20.0040.00417.64
8.2.10.0040.00417.52
8.2.00.0030.00617.54
8.1.280.0160.00325.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00922.10
8.1.230.0110.00020.88
8.1.220.0030.00617.74
8.1.210.0040.00418.84
8.1.200.0030.00617.35
8.1.190.0000.00817.50
8.1.180.0000.00818.10
8.1.170.0000.00818.51
8.1.160.0050.00318.69
8.1.150.0000.00718.59
8.1.140.0000.00717.46
8.1.130.0000.00717.80
8.1.120.0070.00017.26
8.1.110.0080.00017.45
8.1.100.0050.00217.43
8.1.90.0000.00717.34
8.1.80.0000.00717.41
8.1.70.0030.00317.35
8.1.60.0000.00817.52
8.1.50.0040.00417.41
8.1.40.0000.00717.57
8.1.30.0040.00417.60
8.1.20.0040.00417.74
8.1.10.0040.00417.56
8.1.00.0060.00617.37
8.0.300.0070.00020.07
8.0.290.0040.00417.05
8.0.280.0040.00418.39
8.0.270.0030.00317.13
8.0.260.0040.00416.77
8.0.250.0070.00016.88
8.0.240.0030.00616.80
8.0.230.0040.00416.97
8.0.220.0030.00316.79
8.0.210.0040.00416.81
8.0.200.0000.00816.82
8.0.190.0000.00816.80
8.0.180.0030.00516.95
8.0.170.0070.00016.69
8.0.160.0000.00716.94
8.0.150.0000.00816.83
8.0.140.0030.00316.74
8.0.130.0000.00613.28
8.0.120.0050.00316.73
8.0.110.0040.00416.76
8.0.100.0040.00416.83
8.0.90.0000.00716.75
8.0.80.0120.00616.82
8.0.70.0000.00716.83
8.0.60.0050.00316.77
8.0.50.0040.00416.80
8.0.30.0100.00817.34
8.0.20.0130.00717.40
8.0.10.0070.00016.84
8.0.00.0110.00716.77
7.4.330.0000.00516.74
7.4.320.0040.00416.46
7.4.300.0000.00716.55
7.4.290.0000.00716.43
7.4.280.0000.00716.54
7.4.270.0000.00716.55
7.4.260.0000.00613.22
7.4.250.0050.00216.59
7.4.240.0040.00416.54
7.4.230.0030.00316.73
7.4.220.0140.01116.46
7.4.210.0070.00816.51
7.4.200.0000.00716.64
7.4.190.0040.00416.50
7.4.160.0110.00616.48
7.4.150.0090.00917.40
7.4.140.0130.00917.86
7.4.130.0090.00916.42
7.4.120.0100.01016.47
7.4.110.0110.00716.67
7.4.100.0160.00016.59
7.4.90.0110.00816.62
7.4.80.0130.00719.39
7.4.70.0080.00816.41
7.4.60.0090.01316.36
7.4.50.0040.00416.43
7.4.40.0120.00022.77
7.4.30.0080.00916.66
7.4.00.0130.00514.82
7.3.330.0050.00013.38
7.3.320.0050.00013.43
7.3.310.0000.00616.34
7.3.300.0030.00316.30
7.3.290.0130.00716.37
7.3.280.0070.01016.37
7.3.270.0120.00617.40
7.3.260.0080.01218.24
7.3.250.0110.00516.43
7.3.240.0130.00316.35
7.3.230.0190.00016.39
7.3.210.0130.00716.63
7.3.200.0100.00719.39
7.3.190.0070.01016.27
7.3.180.0030.01316.63
7.3.170.0090.00616.53
7.3.160.0100.00716.57
7.3.120.0100.00514.75
7.3.110.0060.01014.70
7.3.100.0090.00614.88
7.3.90.0110.00715.11
7.3.80.0070.00714.99
7.3.70.0120.00314.97
7.3.60.0090.00614.84
7.3.50.0030.00614.62
7.3.40.0130.00714.71
7.3.30.0000.01614.60
7.3.20.0030.01016.84
7.3.10.0040.01116.71
7.3.00.0000.01116.85
7.2.330.0040.01216.71
7.2.320.0060.01416.41
7.2.310.0170.00316.38
7.2.300.0140.00316.32
7.2.290.0190.00316.45
7.2.250.0160.00315.23
7.2.240.0120.00815.20
7.2.230.0060.01314.78
7.2.220.0030.00915.18
7.2.210.0040.01114.67
7.2.200.0030.00615.20
7.2.190.0110.00414.93
7.2.180.0030.01214.86
7.2.170.0110.00615.03
7.2.60.0060.00316.95
7.2.00.0060.00619.20
7.1.330.0000.01615.77
7.1.320.0000.00915.77
7.1.310.0060.00915.66
7.1.300.0000.01415.92
7.1.290.0030.01315.93
7.1.280.0000.01415.82
7.1.270.0030.00915.75
7.1.260.0060.00315.61
7.1.200.0060.00615.63
7.1.100.0040.00817.92
7.1.70.0590.00315.92
7.1.60.0530.00715.92
7.1.50.0510.00415.92
7.1.40.0070.00416.60
7.1.30.0130.00316.47
7.1.20.0100.00516.73
7.1.10.0080.00816.69
7.1.00.0080.00816.93
7.0.200.0570.00415.92
7.0.190.0500.00715.92
7.0.180.0060.00416.40
7.0.170.0090.00316.39
7.0.160.0100.00316.26
7.0.150.0090.00616.38
7.0.140.0080.00416.32
7.0.130.0000.01216.34
7.0.120.0090.00916.48
7.0.110.0040.00816.38
7.0.100.0040.00916.19
7.0.90.0040.00816.28
7.0.80.0090.00616.31
7.0.70.0030.00716.45
7.0.60.0000.01016.20
7.0.50.0000.01016.36
7.0.40.0040.00715.92
7.0.30.0040.00415.92
7.0.20.0110.00315.92
7.0.10.0030.00915.92
7.0.00.0030.00615.92
5.6.300.0100.04220.82
5.6.290.0070.04320.67
5.6.280.0000.04620.89
5.6.270.0190.06821.02
5.6.260.0060.04820.88
5.6.250.0040.04620.87
5.6.240.0130.04020.84
5.6.230.0100.09620.92
5.6.220.0160.04520.88
5.6.210.0030.05821.03
5.6.200.0000.05620.88
5.6.190.0060.04920.97
5.6.180.0070.04420.86
5.6.170.0040.04920.86
5.6.160.0140.03520.85
5.6.150.0040.04820.96
5.6.140.0040.05020.72
5.6.130.0140.04320.95
5.6.120.0130.07920.84
5.6.110.0070.04620.98
5.6.100.0040.04520.84
5.6.90.0030.04820.74
5.6.80.0100.04620.29
5.6.70.0100.07720.33
5.6.60.0110.04220.34
5.6.50.0070.04320.15
5.6.40.0030.04720.32
5.6.30.0030.04720.26
5.6.20.0100.07820.21
5.6.10.0040.04320.20
5.6.00.0070.04220.26
5.5.380.0040.04517.48
5.5.370.0090.04117.48
5.5.360.0070.05317.45
5.5.350.0070.08217.50
5.5.340.0070.06118.13
5.5.330.0000.04818.01
5.5.320.0040.04617.95
5.5.310.0030.06418.00
5.5.300.0040.04318.03
5.5.290.0070.05018.00
5.5.280.0030.04518.00
5.5.270.0100.04018.06
5.5.260.0100.03718.06
5.5.250.0100.03917.94
5.5.240.0000.04417.48
5.5.230.0120.03417.16
5.5.220.0030.07917.38
5.5.210.0100.03317.42
5.5.200.0150.03717.38
5.5.190.0060.04017.03
5.5.180.0100.04417.35
5.5.160.0030.04217.36
5.5.150.0040.03917.35
5.5.140.0100.03717.39
5.5.130.0090.03417.39
5.5.120.0070.03817.13
5.5.110.0100.05717.39
5.5.100.0070.04117.28
5.5.90.0090.03116.95
5.5.80.0090.03817.25
5.5.70.0000.04417.24
5.5.60.0000.04717.29
5.5.50.0000.04417.27
5.5.40.0040.08117.24
5.5.30.0030.04717.37
5.5.20.0060.03917.31
5.5.10.0100.03317.31
5.5.00.0070.03617.06
5.4.450.0040.05319.34
5.4.440.0030.04819.47
5.4.430.0030.04619.42
5.4.420.0000.04719.47
5.4.410.0030.04819.05
5.4.400.0040.03919.08
5.4.390.0040.03918.84
5.4.380.0000.04319.04
5.4.370.0100.03519.15
5.4.360.0040.04719.14
5.4.350.0060.04119.04
5.4.340.0060.04219.04
5.4.320.0000.04319.08
5.4.310.0190.02519.14
5.4.300.0030.04018.86
5.4.290.0030.03918.95
5.4.280.0000.04819.01
5.4.270.0070.07619.03
5.4.260.0130.03318.89
5.4.250.0070.04818.95
5.4.240.0030.04618.86
5.4.230.0000.04819.13
5.4.220.0210.03418.97
5.4.210.0000.04419.03
5.4.200.0070.07619.09
5.4.190.0070.04118.99
5.4.180.0030.04719.03
5.4.170.0030.06619.13
5.4.160.0000.04819.08
5.4.150.0100.08118.85
5.4.140.0070.03516.65
5.4.130.0030.04116.46
5.4.120.0030.03616.41
5.4.110.0100.08116.44
5.4.100.0070.03316.55
5.4.90.0030.03716.68
5.4.80.0000.04216.36
5.4.70.0030.03916.68
5.4.60.0070.03516.67
5.4.50.0030.03816.37
5.4.40.0040.04016.47
5.4.30.0000.03916.66
5.4.20.0320.03216.66
5.4.10.0060.03716.57
5.4.00.0030.03915.92
5.3.290.0100.03415.92
5.3.280.0030.04615.92
5.3.270.0070.06815.92
5.3.260.0030.03815.92
5.3.250.0030.04015.92
5.3.240.0030.03715.92
5.3.230.0160.07915.92
5.3.220.0000.06315.92
5.3.210.0030.05415.92
5.3.200.0030.04015.92
5.3.190.0030.04715.92
5.3.180.0070.04015.92
5.3.170.0090.04015.92
5.3.160.0030.04215.92
5.3.150.0030.04115.92
5.3.140.0070.04015.92
5.3.130.0000.04215.92
5.3.120.0120.03115.92
5.3.110.0170.02815.92
5.3.100.0130.03115.92
5.3.90.0030.03615.92
5.3.80.0070.03315.92
5.3.70.0070.03615.92
5.3.60.0000.04315.92
5.3.50.0100.03215.92
5.3.40.0000.04115.92
5.3.30.0100.03315.92
5.3.20.0000.03915.92
5.3.10.0100.06915.92
5.3.00.0060.08315.92
5.2.170.0060.02815.92
5.2.160.0030.02915.92
5.2.150.0070.02615.92
5.2.140.0110.02115.92
5.2.130.0130.03515.92
5.2.120.0060.05115.92
5.2.110.0060.05815.92
5.2.100.0070.03315.92
5.2.90.0090.04115.92
5.2.80.0030.03115.92
5.2.70.0030.03415.92
5.2.60.0030.03115.92
5.2.50.0000.03415.92
5.2.40.0000.03315.92
5.2.30.0070.02715.92
5.2.20.0000.03315.92
5.2.10.0030.04415.92
5.2.00.0090.03215.92
5.1.60.0030.02715.92
5.1.50.0000.02715.92
5.1.40.0000.02715.92
5.1.30.0090.02215.92
5.1.20.0040.02915.92
5.1.10.0070.02615.92
5.1.00.0070.02115.92
5.0.50.0000.03015.92
5.0.40.0000.03215.92
5.0.30.0000.03515.92
5.0.20.0030.01715.92
5.0.10.0030.03015.92
5.0.00.0030.03115.92
4.4.90.0000.01915.92
4.4.80.0080.01315.92
4.4.70.0000.02015.92
4.4.60.0060.01015.92
4.4.50.0000.02215.92
4.4.40.0000.03515.92
4.4.30.0000.01815.92
4.4.20.0030.01515.92
4.4.10.0030.01315.92
4.4.00.0000.02715.92
4.3.110.0030.01515.92
4.3.100.0000.01615.92
4.3.90.0030.01415.92
4.3.80.0030.02215.92
4.3.70.0000.01815.92
4.3.60.0030.01715.92
4.3.50.0030.01515.92
4.3.40.0030.03915.92
4.3.30.0000.04215.92
4.3.20.0000.02215.92
4.3.10.0030.02515.92
4.3.00.0000.01715.92

preferences:
51.25 ms | 401 KiB | 5 Q