3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __set($name, $value) { if(is_bool($value)) { if($value) { $this->$name = 't'; } else { $this->$name = 'f'; } } } } print is_bool(true); $t1 = new Test(); $test->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.60.0120.00416.88
8.3.50.0060.00916.47
8.3.40.0070.00718.98
8.3.30.0100.00618.79
8.3.20.0040.00420.21
8.3.10.0040.00421.90
8.3.00.0080.00019.79
8.2.180.0070.01016.63
8.2.170.0110.01122.96
8.2.160.0090.00619.21
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00321.00
8.2.120.0000.00826.35
8.2.110.0070.00322.21
8.2.100.0040.00817.99
8.2.90.0050.00319.08
8.2.80.0030.00618.05
8.2.70.0090.00317.75
8.2.60.0060.00317.80
8.2.50.0090.00018.10
8.2.40.0040.00420.59
8.2.30.0040.00419.27
8.2.20.0040.00418.13
8.2.10.0040.00418.00
8.2.00.0040.00418.00
8.1.280.0100.00325.92
8.1.270.0040.00423.97
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0030.00623.92
8.1.230.0110.00022.04
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.40
8.1.160.0000.00719.01
8.1.150.0040.00418.83
8.1.140.0050.00319.48
8.1.130.0070.00018.84
8.1.120.0000.00717.38
8.1.110.0030.00617.32
8.1.100.0050.00317.39
8.1.90.0000.00817.29
8.1.80.0040.00417.38
8.1.70.0000.00717.44
8.1.60.0030.00617.50
8.1.50.0080.00017.43
8.1.40.0030.00917.43
8.1.30.0080.00017.69
8.1.20.0000.00817.53
8.1.10.0000.00717.58
8.1.00.0030.00517.38
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0070.00018.37
8.0.270.0000.00717.19
8.0.260.0000.00716.82
8.0.250.0030.00316.95
8.0.240.0040.00417.04
8.0.230.0080.00016.87
8.0.220.0000.00916.87
8.0.210.0000.00716.82
8.0.200.0000.00716.83
8.0.190.0080.00016.92
8.0.180.0040.00416.95
8.0.170.0040.00416.80
8.0.160.0030.00516.93
8.0.150.0000.00716.88
8.0.140.0000.00916.84
8.0.130.0000.00513.29
8.0.120.0050.00316.83
8.0.110.0030.00316.88
8.0.100.0000.00816.73
8.0.90.0000.00716.79
8.0.80.0070.01416.88
8.0.70.0000.00716.72
8.0.60.0040.00416.88
8.0.50.0000.00716.80
8.0.30.0070.00816.94
8.0.20.0060.01417.40
8.0.10.0040.00417.12
8.0.00.0110.00616.62
7.4.330.0060.00015.55
7.4.320.0000.00716.55
7.4.300.0030.00316.44
7.4.290.0030.00516.44
7.4.280.0040.00416.42
7.4.270.0000.00716.38
7.4.260.0080.00016.55
7.4.250.0050.00316.32
7.4.240.0000.00716.38
7.4.230.0070.00016.42
7.4.220.0090.00916.41
7.4.210.0100.00916.50
7.4.200.0000.00716.52
7.4.160.0070.01016.41
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0190.00616.43
7.4.120.0100.01016.47
7.4.110.0090.00916.50
7.4.100.0110.00616.34
7.4.90.0110.00716.40
7.4.80.0140.01219.39
7.4.70.0130.00316.50
7.4.60.0030.01316.52
7.4.50.0040.01116.50
7.4.40.0080.00816.35
7.4.30.0130.00316.44
7.4.00.0040.01115.15
7.3.330.0020.00213.13
7.3.320.0020.00213.23
7.3.310.0070.00016.17
7.3.300.0040.00416.34
7.3.290.0090.00716.34
7.3.280.0070.00916.28
7.3.270.0140.00317.40
7.3.260.0120.00816.47
7.3.250.0130.00716.47
7.3.240.0110.00616.37
7.3.230.0060.01916.45
7.3.210.0130.00416.52
7.3.200.0130.01016.18
7.3.190.0070.01316.57
7.3.180.0040.01216.32
7.3.170.0140.00716.46
7.3.160.0110.00516.46
7.3.120.0070.01214.62
7.3.110.0070.00914.94
7.3.100.0060.01014.81
7.3.90.0060.00714.78
7.3.80.0070.00514.89
7.3.70.0100.00214.75
7.3.60.0060.00614.88
7.3.50.0080.00614.54
7.3.40.0080.00814.89
7.3.30.0080.00714.67
7.3.20.0080.00316.63
7.3.10.0040.00716.58
7.3.00.0060.00416.46
7.2.330.0100.00716.66
7.2.320.0110.00616.70
7.2.310.0070.01016.59
7.2.300.0030.01616.77
7.2.290.0100.00716.83
7.2.240.0040.01015.01
7.2.230.0030.01214.97
7.2.220.0050.01215.07
7.2.210.0060.00814.85
7.2.200.0050.00815.02
7.2.190.0030.01015.11
7.2.180.0050.01115.14
7.2.170.0020.01314.98
7.2.160.0090.00715.03
7.2.150.0040.01016.68
7.2.140.0050.01117.01
7.2.130.0080.01016.88
7.2.120.0110.00316.85
7.2.110.0060.01016.83
7.2.100.0080.00816.98
7.2.90.0100.00316.92
7.2.80.0070.01016.89
7.2.70.0050.01217.08
7.2.60.0070.00916.91
7.2.50.0050.00716.90
7.2.40.0040.00716.68
7.2.30.0060.00616.99
7.2.20.0080.00816.75
7.2.10.0090.00716.78
7.2.00.0040.00817.84
7.1.330.0070.00915.60
7.1.320.0020.01315.87
7.1.310.0080.00615.44
7.1.300.0040.00915.68
7.1.290.0030.00915.53
7.1.280.0070.00715.58
7.1.270.0060.00815.49
7.1.260.0020.00915.62
7.1.250.0040.00915.62
7.1.200.0030.00915.84
7.1.100.0040.00818.14
7.1.70.0070.01017.17
7.1.60.0260.00635.10
7.1.50.0200.01334.66
7.1.40.0190.01334.08
7.1.30.0170.01434.43
7.1.20.0140.01434.67
7.1.10.0060.00916.46
7.1.00.0090.00616.66
7.0.200.0060.00916.63
7.0.190.0030.01316.80
7.0.180.0080.00816.06
7.0.170.0060.00816.13
7.0.160.0070.00716.30
7.0.150.0030.01316.22
7.0.140.0000.01316.15
7.0.130.0040.00916.44
7.0.120.0000.01416.54
7.0.110.0020.01316.03
7.0.100.0030.01316.42
7.0.90.0060.00916.16
7.0.80.0000.01316.48
7.0.70.0090.00916.14
7.0.60.0040.01416.08
7.0.50.0030.01416.42
7.0.40.0040.01216.31
7.0.30.0030.01316.63
7.0.20.0120.00516.47
7.0.10.0030.01316.33
7.0.00.0120.00616.39

preferences:
39.44 ms | 401 KiB | 5 Q