3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{ public $foo; public $bar; //pseudo-code public function __debugInfo() { return [ 'foo' => $this->foo, 'bat' => $this->bar, ]; } } $instanceOfMyClass = new MyClass(); $instanceOfMyClass->$foo = 1; $instanceOfMyClass->$bar = "two"; var_dump($instanceOfMyClass); ?>

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.40.0070.00718.77
8.3.30.0070.01418.99
8.3.20.0040.00420.30
8.3.10.0090.00020.36
8.3.00.0040.00419.25
8.2.170.0070.00722.96
8.2.160.0150.00020.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.01
8.2.110.0000.00920.52
8.2.100.0030.01017.72
8.2.90.0080.00017.88
8.2.80.0050.00319.42
8.2.70.0040.00418.05
8.2.60.0090.00018.04
8.2.50.0030.00618.10
8.2.40.0000.00820.57
8.2.30.0090.00019.44
8.2.20.0000.00717.88
8.2.10.0000.00718.19
8.2.00.0040.00417.69
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00720.68
8.1.230.0040.00722.63
8.1.220.0040.00417.77
8.1.210.0030.00518.77
8.1.200.0090.00017.47
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0040.00418.52
8.1.160.0040.00422.12
8.1.150.0000.00718.93
8.1.140.0000.00717.36
8.1.130.0030.00317.88
8.1.120.0070.00017.31
8.1.110.0040.00417.43
8.1.100.0070.00017.35
8.1.90.0070.00017.44
8.1.80.0000.00717.36
8.1.70.0050.00317.39
8.1.60.0040.00417.58
8.1.50.0040.00417.53
8.1.40.0050.00317.55
8.1.30.0040.00417.61
8.1.20.0080.00017.49
8.1.10.0040.00417.47
8.1.00.0060.00317.31
8.0.300.0000.00721.94
8.0.290.0000.00816.75
8.0.280.0000.00718.36
8.0.270.0000.00717.11
8.0.260.0060.00017.27
8.0.250.0030.00316.96
8.0.240.0030.00316.89
8.0.230.0070.00017.09
8.0.220.0060.00316.84
8.0.210.0030.00316.94
8.0.200.0030.00316.95
8.0.190.0030.00516.91
8.0.180.0040.00416.99
8.0.170.0050.00317.07
8.0.160.0070.00016.91
8.0.150.0020.00516.91
8.0.140.0030.00316.81
8.0.130.0060.00013.42
8.0.120.0080.00016.86
8.0.110.0040.00417.00
8.0.100.0000.00716.84
8.0.90.0000.00816.98
8.0.80.0040.01216.88
8.0.70.0030.00616.99
8.0.60.0030.00516.92
8.0.50.0070.00016.83
8.0.30.0130.00917.20
8.0.20.0120.00717.40
8.0.10.0000.00717.11
8.0.00.0090.01216.89
7.4.330.0030.00315.07
7.4.320.0050.00316.48
7.4.300.0040.00416.60
7.4.290.0000.00716.53
7.4.280.0040.00416.49
7.4.270.0070.00016.49
7.4.260.0030.00316.56
7.4.250.0040.00416.61
7.4.240.0020.00516.55
7.4.230.0040.00416.39
7.4.220.0030.01516.57
7.4.210.0000.01416.58
7.4.200.0030.00316.49
7.4.160.0050.01216.39
7.4.150.0080.01117.40
7.4.140.0070.01017.86
7.4.130.0070.01416.56
7.4.120.0150.00716.49
7.4.110.0080.00816.47
7.4.100.0090.00916.61
7.4.90.0160.00616.65
7.4.80.0120.01219.39
7.4.70.0130.01016.46
7.4.60.0100.00716.41
7.4.50.0000.00616.25
7.4.40.0140.00316.32
7.4.30.0090.00916.61
7.4.00.0130.00315.00
7.3.330.0000.00613.31
7.3.320.0030.00313.43
7.3.310.0000.00716.25
7.3.300.0030.00316.29
7.3.290.0120.00316.38
7.3.280.0080.00616.27
7.3.270.0120.00917.40
7.3.260.0100.01416.53
7.3.250.0110.00816.45
7.3.240.0190.00016.34
7.3.230.0030.01316.53
7.3.210.0110.00716.38
7.3.200.0060.00919.39
7.3.190.0150.00416.37
7.3.180.0070.01316.58
7.3.170.0160.00616.59
7.3.160.0080.00916.36
7.2.330.0090.00916.44
7.2.320.0030.01416.47
7.2.310.0030.01316.63
7.2.300.0080.01116.32
7.2.290.0030.01516.59
7.2.60.0070.00716.57
7.2.00.0100.00719.44
7.1.200.0030.00615.85
7.1.100.0100.00618.03
7.1.70.0090.00617.11
7.1.60.0100.01419.46
7.1.50.0070.01416.61
7.1.00.0030.07722.36
7.0.200.0040.00416.71
7.0.140.0030.07022.12
7.0.60.0230.07321.83
7.0.50.0030.06717.88
7.0.40.0030.05020.26
7.0.30.0470.08020.24
7.0.20.0300.04320.33
7.0.10.0070.08320.21
7.0.00.0130.08020.25
5.6.280.0070.07020.78
5.6.210.0000.07320.77
5.6.200.0100.07018.12
5.6.190.0170.07720.64
5.6.180.0130.08320.63
5.6.170.0270.07720.57
5.6.160.0100.03320.48
5.6.150.0000.04318.16
5.6.140.0070.07718.16
5.6.130.0070.03718.14
5.6.120.0100.08020.99
5.6.110.0170.07721.03
5.6.100.0100.06720.96
5.6.90.0100.08021.08
5.6.80.0100.07720.39
5.5.350.4300.03020.32
5.5.340.0000.05717.99
5.5.330.0030.06020.29
5.5.320.0300.05320.32
5.5.310.0200.04320.30
5.5.300.0070.08318.08
5.5.290.0200.04017.98
5.5.280.0070.04720.80
5.5.270.0070.08720.64
5.5.260.0030.09020.79
5.5.250.0070.04320.61
5.5.240.0100.07020.07
5.4.450.0070.06019.41
5.4.440.3800.04319.42
5.4.430.3900.04019.19
5.4.420.0000.07019.51
5.4.410.3800.04319.41
5.4.400.3900.03718.88
5.4.390.3800.03318.86
5.4.380.3830.03718.98
5.4.370.4030.04318.99
5.4.360.3100.03719.10
5.4.350.1930.04019.06
5.4.340.3270.03018.99
5.4.320.2630.03719.16
5.4.310.3370.03318.95
5.4.300.2900.03718.97
5.4.290.2730.04319.14
5.4.280.3370.04718.94
5.4.270.3700.04019.08
5.4.260.3770.04019.15
5.4.250.3930.04019.13
5.4.240.3900.03019.14
5.4.230.3970.03319.31
5.4.220.3870.04019.15
5.4.210.3730.03019.09
5.4.200.3330.03019.07
5.4.190.3500.03718.98
5.4.180.3430.03318.88
5.4.170.3630.03319.12
5.4.160.3870.04319.22
5.4.150.3500.03319.07
5.4.140.3730.05016.31
5.4.130.3770.03016.32
5.4.120.3600.04316.51
5.4.110.3730.03016.51
5.4.100.3600.03316.19
5.4.90.3470.03716.28
5.4.80.3600.03316.35
5.4.70.3570.03716.58
5.4.60.3800.05316.43
5.4.50.3630.03716.43
5.4.40.3900.04016.42
5.4.30.3900.03716.53
5.4.20.4370.03016.53
5.4.10.3900.03016.51
5.4.00.4130.03715.80
5.3.290.3430.02714.67
5.3.280.3830.03314.68
5.3.270.3030.04014.65
5.3.260.3670.03714.57
5.3.250.3530.04014.64
5.3.240.3430.03314.62
5.3.230.3630.04014.60
5.3.220.3570.03014.64
5.3.210.3670.03714.47
5.3.200.3670.03714.58
5.3.190.3730.03314.68
5.3.180.3870.04314.48
5.3.170.3400.03314.57
5.3.160.3670.03014.64
5.3.150.3400.03314.48
5.3.140.3930.03714.52
5.3.130.4200.03314.56
5.3.120.4370.03314.45
5.3.110.3770.03314.46
5.3.100.4000.04014.15
5.3.90.3570.03714.04
5.3.80.4300.03713.95
5.3.70.3970.03713.93
5.3.60.4200.03714.16
5.3.50.2670.05714.04
5.3.40.3570.03713.96
5.3.30.3500.03013.88
5.3.20.3500.03313.71
5.3.10.3430.03313.63
5.3.00.3700.03713.80
5.2.170.3530.02711.30
5.2.160.3030.03011.12
5.2.150.3130.03711.15
5.2.140.3270.03711.07
5.2.130.2700.02711.16
5.2.120.2900.02711.12
5.2.110.3100.02711.10
5.2.100.2930.02710.96
5.2.90.3100.03011.06
5.2.80.2500.02311.05
5.2.70.2630.03311.02
5.2.60.4270.02310.96
5.2.50.3370.03310.94
5.2.40.2930.02710.91
5.2.30.2800.03010.89
5.2.20.2530.02310.86
5.2.10.0100.02311.08
5.2.00.0000.03010.71
5.1.60.0030.0409.90
5.1.50.0000.0309.91
5.1.40.2330.0279.95
5.1.30.2300.02710.29
5.1.20.2570.02710.51
5.1.10.2130.0309.97
5.1.00.2230.03310.23
5.0.50.1200.0179.72
5.0.40.1100.0239.72
5.0.30.1570.0309.72
5.0.20.1370.0239.72
5.0.10.1570.0209.72
5.0.00.1600.0279.72
4.4.90.1330.0179.72
4.4.80.1700.0179.72
4.4.70.1070.0139.72
4.4.60.1300.0109.72
4.4.50.0030.0209.72
4.4.40.0000.0279.72
4.4.30.0600.0179.72
4.4.20.1170.0179.72
4.4.10.0830.0179.72
4.4.00.1430.0279.72
4.3.110.1170.0139.72
4.3.100.1230.0139.72
4.3.90.0800.0179.72
4.3.80.1100.0209.72
4.3.70.1700.0139.72
4.3.60.1770.0139.72
4.3.50.1470.0209.72
4.3.40.1170.0279.72
4.3.30.0770.0239.72
4.3.20.0570.0239.72
4.3.10.0600.0179.72
4.3.00.0770.0209.72

preferences:
43.06 ms | 400 KiB | 5 Q