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->foo=100; var_dump( $className );

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.0000.01518.55
8.3.50.0100.00718.17
8.3.40.0070.00718.84
8.3.30.0000.01518.98
8.3.20.0050.00319.32
8.3.10.0000.00821.78
8.3.00.0040.00420.57
8.2.180.0120.00318.41
8.2.170.0140.00022.96
8.2.160.0140.00020.94
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00017.95
8.2.120.0050.00326.35
8.2.110.0060.00319.39
8.2.100.0090.00317.91
8.2.90.0040.00417.63
8.2.80.0000.00817.97
8.2.70.0050.00317.80
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00419.22
8.2.30.0070.00019.16
8.2.20.0040.00718.04
8.2.10.0040.00417.86
8.2.00.0070.00717.64
8.1.280.0080.01125.92
8.1.270.0080.00018.70
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.32
8.1.230.0090.00322.17
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0050.00318.28
8.1.160.0040.00418.69
8.1.150.0000.00718.79
8.1.140.0040.00422.23
8.1.130.0000.00721.77
8.1.120.0040.00417.36
8.1.110.0030.00517.30
8.1.100.0040.00417.30
8.1.90.0000.00717.39
8.1.80.0040.00417.36
8.1.70.0030.00717.26
8.1.60.0000.00817.52
8.1.50.0000.00717.39
8.1.40.0030.00617.54
8.1.30.0000.00817.61
8.1.20.0000.00717.54
8.1.10.0060.00317.55
8.1.00.0040.00417.55
8.0.300.0060.00318.77
8.0.290.0080.00016.75
8.0.280.0040.00418.29
8.0.270.0000.00916.80
8.0.260.0040.00418.44
8.0.250.0070.00016.91
8.0.240.0000.00816.95
8.0.230.0090.00016.99
8.0.220.0000.00716.96
8.0.210.0030.00316.86
8.0.200.0060.00016.87
8.0.190.0030.00516.96
8.0.180.0070.00016.94
8.0.170.0000.01016.91
8.0.160.0000.00716.92
8.0.150.0030.00516.78
8.0.140.0030.00316.91
8.0.130.0080.00013.35
8.0.120.0050.00316.79
8.0.110.0070.00016.84
8.0.100.0020.00516.86
8.0.90.0040.00416.77
8.0.80.0090.00716.92
8.0.70.0070.00016.89
8.0.60.0040.00416.75
8.0.50.0040.00416.92
8.0.30.0070.01017.10
8.0.20.0140.01117.40
8.0.10.0040.00417.02
8.0.00.0100.00816.63
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0070.00016.48
7.4.290.0000.00716.62
7.4.280.0000.00916.50
7.4.270.0040.00316.51
7.4.260.0000.00816.55
7.4.250.0000.00716.54
7.4.240.0030.00316.52
7.4.230.0030.00316.68
7.4.220.0000.00716.63
7.4.210.0110.00616.51
7.4.200.0000.00716.52
7.4.160.0080.00816.53
7.4.140.0100.01017.86
7.4.130.0030.01416.60
7.4.120.0110.00916.55
7.4.110.0090.00916.38
7.4.100.0120.01216.48
7.4.90.0090.01216.30
7.4.80.0110.00719.39
7.4.70.0030.01816.58
7.4.60.0030.01316.54
7.4.50.0030.01316.61
7.4.40.0130.00316.56
7.4.00.0060.01114.77
7.3.330.0050.00013.31
7.3.320.0050.00013.11
7.3.310.0030.00616.35
7.3.300.0030.00316.34
7.3.290.0000.00716.16
7.3.280.0070.00816.33
7.3.260.0100.01016.47
7.3.240.0100.00816.49
7.3.230.0030.01616.40
7.3.210.0120.00616.40
7.3.200.0120.00616.40
7.3.190.0120.00916.51
7.3.180.0030.01316.33
7.3.170.0130.01016.21
7.3.160.0060.01016.52
7.3.120.0000.01814.52
7.3.110.0100.00714.60
7.3.100.0040.01414.62
7.3.90.0100.01014.78
7.3.80.0060.00614.94
7.3.70.0070.00314.95
7.3.60.0070.00714.93
7.3.50.0000.00914.89
7.3.40.0060.00614.78
7.3.30.0000.01514.61
7.3.20.0040.00716.47
7.3.10.0070.00416.69
7.3.00.0090.00616.65
7.2.330.0160.01116.66
7.2.320.0090.00916.66
7.2.310.0030.01316.63
7.2.300.0100.00716.30
7.2.290.0080.00816.64
7.2.250.0070.01014.84
7.2.240.0040.00715.03
7.2.230.0030.01015.16
7.2.220.0070.00714.95
7.2.210.0030.00714.66
7.2.200.0040.01115.04
7.2.190.0000.01015.12
7.2.180.0060.00914.64
7.2.170.0100.00714.99
7.2.130.0060.00916.85
7.2.120.0110.00416.63
7.2.110.0100.01015.76
7.2.100.0090.00915.72
7.2.90.0140.00715.88
7.2.80.0170.00515.79
7.2.70.0100.00816.04
7.2.60.0130.00615.87
7.2.50.0090.00815.97
7.2.40.0110.00815.77
7.2.30.0130.00615.95
7.2.20.0120.00716.02
7.2.10.0110.00615.77
7.2.00.0120.00515.87
7.1.330.0000.01315.97
7.1.320.0000.01615.68
7.1.310.0030.00616.02
7.1.300.0080.00315.66
7.1.290.0060.01015.57
7.1.280.0070.01015.80
7.1.270.0000.00815.75
7.1.260.0030.00915.85
7.1.250.0040.00415.58
7.1.230.0210.00313.91
7.1.220.0140.00913.84
7.1.210.0200.00713.65
7.1.200.0250.00613.91
7.1.190.0130.01313.73
7.1.180.0130.01313.76
7.1.170.0190.00413.91
7.1.160.0150.00813.76
7.1.150.0160.00614.03
7.1.140.0140.00913.74
7.1.130.0210.00713.94
7.1.120.0180.00613.64
7.1.110.0160.00913.94
7.1.100.0260.00013.91
7.1.90.0130.00913.89
7.1.80.0150.00713.97
7.1.70.0170.00713.64
7.1.60.0320.00931.59
7.1.50.0770.00731.81
7.1.40.0470.00731.75
7.1.30.0350.00631.77
7.1.20.0340.01031.86
7.1.10.0190.00613.85
7.1.00.0260.00613.78
5.6.380.0100.00314.54

preferences:
63.38 ms | 400 KiB | 5 Q