3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __set($name, $value) { if(is_bool($value)) { print 'over here'; if($value) { $this->$name = 't'; } else { $this->$name = 'f'; } } } } $t1 = new Test(); $t1->param = true; print_r($test);

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.0110.00418.93
8.3.30.0110.00418.50
8.3.20.0040.00420.21
8.3.10.0040.00421.82
8.3.00.0050.00319.54
8.2.170.0150.00822.96
8.2.160.0150.00018.98
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0120.00321.18
8.2.110.0060.00322.25
8.2.100.0040.00817.72
8.2.90.0040.00419.08
8.2.80.0090.00017.97
8.2.70.0050.00517.50
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0040.00420.55
8.2.30.0000.00819.17
8.2.20.0040.00418.11
8.2.10.0050.00218.07
8.2.00.0070.00018.04
8.1.270.0040.00423.84
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0080.00422.31
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0050.00318.66
8.1.160.0040.00418.99
8.1.150.0020.00520.67
8.1.140.0080.00019.48
8.1.130.0000.00718.81
8.1.120.0040.00417.50
8.1.110.0030.00517.40
8.1.100.0040.00417.39
8.1.90.0040.00417.46
8.1.80.0040.00317.50
8.1.70.0000.00717.43
8.1.60.0080.00017.55
8.1.50.0020.00517.42
8.1.40.0070.00417.46
8.1.30.0000.00817.55
8.1.20.0000.00917.66
8.1.10.0040.00417.61
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0050.00217.25
8.0.260.0000.00716.93
8.0.250.0040.00417.07
8.0.240.0030.00317.09
8.0.230.0080.00017.02
8.0.220.0060.00316.97
8.0.210.0050.00317.00
8.0.200.0040.00417.03
8.0.190.0000.00817.06
8.0.180.0050.00217.00
8.0.170.0000.00716.88
8.0.160.0030.00416.89
8.0.150.0000.00716.82
8.0.140.0040.00416.83
8.0.130.0030.00313.45
8.0.120.0050.00316.88
8.0.110.0040.00416.92
8.0.100.0000.00717.02
8.0.90.0070.00016.92
8.0.80.0030.01516.92
8.0.70.0040.00417.00
8.0.60.0050.00216.87
8.0.50.0040.00416.85
8.0.30.0090.01117.27
8.0.20.0080.01117.40
8.0.10.0030.00517.18
8.0.00.0110.00616.79
7.4.330.0020.00215.55
7.4.320.0000.00616.46
7.4.300.0000.00616.50
7.4.290.0030.00316.45
7.4.280.0040.00416.59
7.4.270.0000.00716.52
7.4.260.0060.00316.56
7.4.250.0040.00416.62
7.4.240.0030.00316.50
7.4.230.0070.00016.61
7.4.220.0160.00916.63
7.4.210.0130.00316.51
7.4.200.0000.00716.48
7.4.160.0080.01116.51
7.4.150.0100.00917.40
7.4.140.0090.00817.86
7.4.130.0090.01416.61
7.4.120.0130.00516.57
7.4.110.0100.01616.62
7.4.100.0110.00616.44
7.4.90.0030.01316.64
7.4.80.0110.01119.39
7.4.70.0150.00616.52
7.4.60.0170.00316.48
7.4.50.0100.00516.67
7.4.40.0110.00616.65
7.4.30.0130.00316.53
7.4.00.0050.00914.78
7.3.330.0060.00013.47
7.3.320.0000.00613.19
7.3.310.0000.00716.33
7.3.300.0030.00316.34
7.3.290.0090.00816.39
7.3.280.0090.00616.40
7.3.270.0070.01017.40
7.3.260.0130.00816.46
7.3.250.0100.00816.33
7.3.240.0090.01116.60
7.3.230.0090.00916.57
7.3.210.0060.01016.36
7.3.200.0060.01016.49
7.3.190.0090.00616.49
7.3.180.0060.01016.55
7.3.170.0070.01216.57
7.3.160.0090.01216.72
7.3.120.0110.00614.75
7.3.110.0100.00714.87
7.3.100.0100.00715.05
7.3.90.0060.00314.80
7.3.80.0060.00614.88
7.3.70.0080.00714.87
7.3.60.0030.01114.98
7.3.50.0030.00814.84
7.3.40.0060.00814.79
7.3.30.0090.00814.77
7.3.20.0070.00716.58
7.3.10.0050.00716.74
7.3.00.0060.00716.68
7.2.330.0100.00716.62
7.2.320.0110.00816.75
7.2.310.0120.00616.55
7.2.300.0070.01016.49
7.2.290.0060.01116.72
7.2.250.0080.01014.85
7.2.240.0020.01614.98
7.2.230.0020.01215.03
7.2.220.0100.00215.00
7.2.210.0060.00715.08
7.2.200.0000.01414.96
7.2.190.0020.01215.00
7.2.180.0070.00715.00
7.2.170.0050.00914.83
7.2.80.0040.00416.50
7.2.60.0130.01016.97
7.2.00.0000.01719.05
7.1.330.0050.00815.85
7.1.320.0060.00415.89
7.1.310.0050.00815.79
7.1.300.0030.01015.76
7.1.290.0050.00615.92
7.1.280.0020.01215.81
7.1.270.0060.00515.85
7.1.260.0080.00315.56
7.1.200.0000.01515.93
7.1.100.0000.00818.37
7.1.70.0030.01317.13
7.1.60.0210.01235.09
7.1.50.0230.01034.93
7.1.40.0110.02134.50
7.1.30.0090.01934.48
7.1.20.0060.02334.49
7.1.10.0060.01016.50
7.1.00.0100.00716.79
7.0.200.0030.01216.59
7.0.190.0000.01616.64
7.0.180.0060.01216.46
7.0.170.0040.01116.29
7.0.160.0090.00616.46
7.0.150.0040.01016.22
7.0.140.0030.01216.27
7.0.130.0030.01016.52
7.0.120.0060.00916.45
7.0.110.0050.01016.09
7.0.100.0070.01116.28
7.0.90.0090.00616.28
7.0.80.0040.01116.37
7.0.70.0000.01516.22
7.0.60.0050.01416.16
7.0.50.0100.00816.57
7.0.40.0030.01316.75
7.0.30.0030.01316.41
7.0.20.0070.01016.38
7.0.10.0070.01016.38
7.0.00.0030.01316.47

preferences:
56.35 ms | 400 KiB | 5 Q