3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { protected $foo = 1; public function update(){ $this->foo+=10; } } $className = new test(); var_dump( $className ); $className->update(); var_dump( $className ); $className->foo=100; //gonna cause a blowout...

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.80.0040.00417.97
8.3.70.0040.01116.63
8.3.60.0070.00718.80
8.3.50.0110.00518.46
8.3.40.0040.01118.94
8.3.30.0070.00718.73
8.3.20.0000.00919.43
8.3.10.0040.00423.71
8.3.00.0000.00820.55
8.2.200.0060.00316.75
8.2.190.0110.00416.79
8.2.180.0040.01118.28
8.2.170.0110.00422.96
8.2.160.0000.01420.64
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00417.97
8.2.120.0000.00726.35
8.2.110.0090.00022.20
8.2.100.0040.00919.89
8.2.90.0040.00419.25
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0090.00018.16
8.2.30.0070.00018.07
8.2.20.0080.00317.97
8.2.10.0050.00317.92
8.2.00.0060.00317.77
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0080.00018.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00320.87
8.1.230.0070.00422.20
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0110.00318.43
8.1.160.0080.00018.80
8.1.150.0050.00318.79
8.1.140.0050.00322.13
8.1.130.0030.00321.84
8.1.120.0030.00417.28
8.1.110.0070.00017.29
8.1.100.0070.00017.32
8.1.90.0040.00417.39
8.1.80.0050.00317.41
8.1.70.0060.00317.34
8.1.60.0030.00617.48
8.1.50.0000.00817.51
8.1.40.0030.00617.41
8.1.30.0080.00017.62
8.1.20.0040.00417.70
8.1.10.0050.00317.61
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0000.00816.74
8.0.280.0000.00718.29
8.0.270.0070.00017.12
8.0.260.0000.00618.37
8.0.250.0070.00016.92
8.0.240.0070.00017.01
8.0.230.0000.00716.95
8.0.220.0000.00716.91
8.0.210.0000.00716.79
8.0.200.0000.00616.94
8.0.190.0040.00416.93
8.0.180.0040.00416.96
8.0.170.0030.00716.79
8.0.160.0040.00416.97
8.0.150.0080.00016.78
8.0.140.0040.00416.80
8.0.130.0060.00313.35
8.0.120.0070.00016.75
8.0.110.0090.00016.89
8.0.100.0070.00016.87
8.0.90.0000.00716.87
8.0.80.0050.01116.88
8.0.70.0080.00016.86
8.0.60.0000.00716.76
8.0.50.0000.00716.82
8.0.30.0080.01217.03
8.0.20.0070.01117.40
8.0.10.0000.00816.81
8.0.00.0090.00916.63
7.4.330.0050.00015.55
7.4.320.0030.00316.49
7.4.300.0040.00416.54
7.4.290.0040.00316.56
7.4.280.0090.00016.50
7.4.270.0070.00016.64
7.4.260.0030.00316.57
7.4.250.0000.00716.60
7.4.240.0060.00316.55
7.4.230.0030.00316.63
7.4.220.0040.00416.58
7.4.210.0050.01016.52
7.4.200.0030.00316.50
7.4.160.0090.00816.52
7.4.140.0120.00817.86
7.4.130.0080.00816.40
7.4.120.0090.00916.54
7.4.110.0080.01216.38
7.4.100.0140.00716.43
7.4.90.0090.00816.44
7.4.80.0140.00219.39
7.4.70.0090.00916.61
7.4.60.0070.01516.57
7.4.50.0060.01016.26
7.4.40.0090.00616.46
7.4.00.0080.00714.78
7.3.330.0000.00513.24
7.3.320.0050.00013.22
7.3.310.0030.00616.34
7.3.300.0030.00316.30
7.3.290.0040.00416.46
7.3.280.0080.00816.31
7.3.260.0130.01016.39
7.3.240.0060.01116.38
7.3.230.0090.00916.49
7.3.210.0080.00816.47
7.3.200.0120.00916.36
7.3.190.0000.01716.39
7.3.180.0080.00816.29
7.3.170.0030.01416.41
7.3.160.0000.01716.44
7.3.120.0060.01014.81
7.3.110.0120.00614.56
7.3.100.0130.00314.62
7.3.90.0080.00814.94
7.3.80.0030.00915.01
7.3.70.0060.00314.74
7.3.60.0100.00314.93
7.3.50.0030.00714.53
7.3.40.0100.00314.56
7.3.30.0030.00714.64
7.3.20.0090.00316.39
7.3.10.0030.00716.68
7.3.00.0060.00616.46
7.2.330.0090.00916.40
7.2.320.0050.01416.40
7.2.310.0110.00516.39
7.2.300.0100.01016.59
7.2.290.0130.00316.52
7.2.250.0100.01014.95
7.2.240.0090.01215.14
7.2.230.0090.00614.82
7.2.220.0110.00414.75
7.2.210.0100.00315.11
7.2.200.0080.00415.05
7.2.190.0060.00315.14
7.2.180.0060.00914.98
7.2.170.0070.00714.90
7.2.110.0170.01014.86
7.2.100.0200.00714.77
7.2.90.0250.00914.63
7.2.80.0200.00614.89
7.2.70.0210.00415.10
7.2.60.0380.01215.02
7.2.50.0260.00015.03
7.2.40.0190.00815.01
7.2.30.0220.00614.92
7.2.20.0270.00615.02
7.2.10.0140.00915.04
7.2.00.0220.00614.74
7.1.330.0060.00615.73
7.1.320.0070.00715.82
7.1.310.0090.00015.86
7.1.300.0100.00315.73
7.1.290.0030.01015.64
7.1.280.0070.00315.80
7.1.270.0030.01015.59
7.1.260.0120.00015.90
7.1.230.0230.00313.95
7.1.220.0200.01013.86
7.1.210.0230.00713.84
7.1.200.0200.00613.85
7.1.190.0200.01013.94
7.1.180.0160.01013.52
7.1.170.0220.00913.70
7.1.160.0200.01513.82
7.1.150.0180.00613.90
7.1.140.0180.00613.91
7.1.130.0170.00913.85
7.1.120.0180.00714.01
7.1.110.0210.01213.77
7.1.100.0250.00913.77
7.1.90.0290.00413.79
7.1.80.0220.00613.89
7.1.70.1120.00713.84
7.1.60.0450.01431.79
7.1.50.0470.01031.88
7.1.40.0540.00631.81
7.1.30.0610.00431.95
7.1.20.0290.02131.86
7.1.10.0220.00313.58
7.1.00.0240.00513.80
5.6.380.0060.00914.22

preferences:
29.72 ms | 401 KiB | 5 Q