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 = false; print_r($t1);

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.70.0110.01116.61
8.3.60.0070.01016.63
8.3.50.0120.00516.61
8.3.40.0110.00418.88
8.3.30.0170.00318.84
8.3.20.0050.00320.34
8.3.10.0090.00021.85
8.3.00.0080.00019.56
8.2.180.0130.00616.75
8.2.170.0110.00722.96
8.2.160.0120.00319.21
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00019.35
8.2.120.0040.00426.35
8.2.110.0000.00922.25
8.2.100.0110.00317.78
8.2.90.0040.00418.92
8.2.80.0060.00317.97
8.2.70.0070.00317.50
8.2.60.0050.00318.03
8.2.50.0000.00818.10
8.2.40.0000.00820.47
8.2.30.0040.00419.30
8.2.20.0000.00717.99
8.2.10.0060.00317.97
8.2.00.0000.00718.02
8.1.280.0060.00925.92
8.1.270.0070.00022.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00523.92
8.1.230.0070.00422.12
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0030.00518.98
8.1.150.0040.00420.67
8.1.140.0000.00719.65
8.1.130.0000.00718.89
8.1.120.0040.00317.37
8.1.110.0090.00017.46
8.1.100.0070.00017.42
8.1.90.0070.00017.49
8.1.80.0000.00717.48
8.1.70.0000.00717.43
8.1.60.0000.00817.60
8.1.50.0050.00317.52
8.1.40.0000.01017.45
8.1.30.0030.00517.53
8.1.20.0030.00617.66
8.1.10.0040.00417.54
8.1.00.0030.00517.58
8.0.300.0000.00718.77
8.0.290.0060.00316.62
8.0.280.0000.00718.45
8.0.270.0030.00317.19
8.0.260.0030.00316.82
8.0.250.0000.00817.01
8.0.240.0000.00716.79
8.0.230.0070.00016.96
8.0.220.0030.00616.79
8.0.210.0000.00716.94
8.0.200.0030.00316.96
8.0.190.0030.00516.93
8.0.180.0040.00416.83
8.0.170.0000.00716.94
8.0.160.0030.00316.96
8.0.150.0030.00816.82
8.0.140.0070.00016.85
8.0.130.0030.00513.30
8.0.120.0050.00316.84
8.0.110.0030.00316.89
8.0.100.0040.00416.74
8.0.90.0080.00016.79
8.0.80.0140.00316.91
8.0.70.0040.00416.69
8.0.60.0040.00416.83
8.0.50.0040.00416.80
8.0.30.0060.01117.06
8.0.20.0100.00917.40
8.0.10.0040.00417.02
8.0.00.0060.01116.81
7.4.330.0000.00515.55
7.4.320.0000.00716.57
7.4.300.0000.00616.63
7.4.290.0040.00416.59
7.4.280.0050.00316.59
7.4.270.0080.00016.61
7.4.260.0000.00616.39
7.4.250.0050.00316.48
7.4.240.0040.00416.63
7.4.230.0030.00316.61
7.4.220.0090.00916.59
7.4.210.0070.00716.45
7.4.200.0040.00416.39
7.4.160.0070.00916.52
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0120.00916.57
7.4.120.0120.00816.64
7.4.110.0190.00416.40
7.4.100.0130.02316.41
7.4.90.0130.01016.67
7.4.80.0110.00719.39
7.4.70.0150.00616.64
7.4.60.0110.00516.61
7.4.50.0060.00916.24
7.4.40.0160.00016.57
7.4.30.0100.00616.42
7.4.00.0080.00814.74
7.3.330.0000.00513.34
7.3.320.0050.00013.32
7.3.310.0040.00416.26
7.3.300.0000.00616.33
7.3.290.0050.01016.34
7.3.280.0050.01116.36
7.3.270.0140.00417.40
7.3.260.0110.00516.57
7.3.250.0110.00716.35
7.3.240.0030.01416.55
7.3.230.0160.00016.34
7.3.210.0130.00316.27
7.3.200.0120.00616.33
7.3.190.0140.00316.30
7.3.180.0170.00316.59
7.3.170.0120.00816.53
7.3.160.0060.01016.32
7.3.120.0030.01414.93
7.3.110.0070.01015.09
7.3.100.0130.00314.64
7.3.90.0090.00014.73
7.3.80.0110.00314.71
7.3.70.0030.01014.74
7.3.60.0080.00414.71
7.3.50.0060.00914.85
7.3.40.0060.00314.68
7.3.30.0100.00314.64
7.3.20.0070.00716.65
7.3.10.0030.01016.41
7.3.00.0070.00316.46
7.2.330.0070.01016.70
7.2.320.0070.01016.57
7.2.310.0140.00416.69
7.2.300.0170.00016.73
7.2.290.0100.01516.61
7.2.250.0130.00315.21
7.2.240.0000.01814.90
7.2.230.0070.01114.89
7.2.220.0080.00415.29
7.2.210.0030.00614.87
7.2.200.0070.01014.90
7.2.190.0100.00614.96
7.2.180.0030.01015.16
7.2.170.0000.01614.99
7.2.60.0040.01116.87
7.2.00.0000.01419.18
7.1.330.0070.00715.70
7.1.320.0100.00015.70
7.1.310.0060.00315.90
7.1.300.0110.00415.88
7.1.290.0030.00915.66
7.1.280.0110.00315.75
7.1.270.0070.01015.87
7.1.260.0040.00416.00
7.1.200.0000.00815.64
7.1.100.0040.00718.14
7.1.70.0040.01317.34
7.1.60.0210.00834.79
7.1.50.0220.00734.56
7.1.40.0150.02534.45
7.1.30.0180.01534.55
7.1.20.0170.01734.73
7.1.10.0060.00816.71
7.1.00.0060.01116.78
7.0.200.0030.01016.61
7.0.190.0030.00916.71
7.0.180.0060.01116.21
7.0.170.0030.01316.35
7.0.160.0030.01316.06
7.0.150.0000.01316.30
7.0.140.0070.01016.41
7.0.130.0120.00616.63
7.0.120.0060.01216.46
7.0.110.0090.00416.46
7.0.100.0030.01016.14
7.0.90.0040.00816.35
7.0.80.0030.01016.31
7.0.70.0060.00616.43
7.0.60.0060.00615.91
7.0.50.0000.01416.45
7.0.40.0100.00316.43
7.0.30.0130.00016.42
7.0.20.0070.01016.36
7.0.10.0030.01416.43
7.0.00.0000.01716.40

preferences:
42.68 ms | 401 KiB | 5 Q