3v4l.org

run code in 300+ PHP versions simultaneously
<?php function boolToStr(&$value) { if($value === true) { $value = 't'; } elseif($value === false) { $value = 'f'; } } class Test { private $data; function __set($name, $value) { print "__set($name, $value)\n"; if(is_bool($value)) { boolToStr($value); } $this->data[$name] = $value; } function __get($name) { print "__get($name)\n"; return $this->data[$name]; } } $t1 = new Test(); $t1->param = true; var_dump($t1); $t1->param = false; var_dump($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.60.0110.00416.50
8.3.50.0060.00916.50
8.3.40.0140.00018.80
8.3.30.0070.00718.79
8.3.20.0090.00020.21
8.3.10.0040.00423.54
8.3.00.0040.00719.78
8.2.180.0090.01216.75
8.2.170.0180.00322.96
8.2.160.0140.00719.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00720.93
8.2.120.0070.00026.35
8.2.110.0060.00322.21
8.2.100.0080.00317.79
8.2.90.0040.00419.21
8.2.80.0080.00018.02
8.2.70.0080.00017.38
8.2.60.0000.00918.05
8.2.50.0050.00518.10
8.2.40.0000.00820.38
8.2.30.0040.00419.38
8.2.20.0070.00018.04
8.2.10.0020.00518.12
8.2.00.0000.00718.04
8.1.280.0060.01225.92
8.1.270.0040.00422.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.97
8.1.230.0030.00919.05
8.1.220.0030.00517.79
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0000.00818.46
8.1.160.0000.00719.03
8.1.150.0040.00420.66
8.1.140.0070.00019.42
8.1.130.0030.00318.83
8.1.120.0040.00417.43
8.1.110.0080.00017.38
8.1.100.0030.00517.42
8.1.90.0070.00017.35
8.1.80.0000.00717.42
8.1.70.0040.00417.27
8.1.60.0040.00417.61
8.1.50.0000.00817.56
8.1.40.0050.00517.53
8.1.30.0040.00417.70
8.1.20.0040.00417.65
8.1.10.0040.00417.57
8.1.00.0040.00417.39
8.0.300.0130.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.49
8.0.270.0070.00017.27
8.0.260.0070.00016.77
8.0.250.0000.00716.86
8.0.240.0070.00017.05
8.0.230.0030.00316.96
8.0.220.0030.00816.80
8.0.210.0000.00716.79
8.0.200.0030.00316.89
8.0.190.0030.00516.93
8.0.180.0000.00816.91
8.0.170.0000.00716.85
8.0.160.0000.00716.98
8.0.150.0030.00616.88
8.0.140.0060.00316.86
8.0.130.0060.00013.32
8.0.120.0000.00716.90
8.0.110.0000.00816.75
8.0.100.0030.00516.82
8.0.90.0070.00016.94
8.0.80.0130.00716.87
8.0.70.0000.00816.96
8.0.60.0040.00416.80
8.0.50.0000.00816.91
8.0.30.0060.01217.04
8.0.20.0090.01117.40
8.0.10.0000.00716.83
8.0.00.0060.01216.84
7.4.330.0030.00315.55
7.4.320.0070.00016.61
7.4.300.0060.00016.61
7.4.290.0000.00716.53
7.4.280.0080.00316.55
7.4.270.0030.00316.52
7.4.260.0000.00816.61
7.4.250.0000.00816.59
7.4.240.0070.00016.43
7.4.230.0000.00816.71
7.4.220.0070.01016.62
7.4.210.0110.00416.51
7.4.200.0080.00016.34
7.4.160.0080.00816.61
7.4.150.0110.01217.40
7.4.140.0100.01017.86
7.4.130.0160.00316.49
7.4.120.0080.01016.58
7.4.110.0060.01316.36
7.4.100.0120.00616.49
7.4.90.0080.00816.38
7.4.80.0090.00919.39
7.4.70.0090.00616.59
7.4.60.0030.01416.57
7.4.50.0080.00316.58
7.4.40.0060.01016.34
7.4.30.0080.00916.55
7.4.10.0100.00914.94
7.4.00.0070.01115.00
7.3.330.0000.00513.31
7.3.320.0000.00513.41
7.3.310.0030.00316.48
7.3.300.0070.00016.44
7.3.290.0060.00816.38
7.3.280.0090.00916.35
7.3.270.0030.01517.40
7.3.260.0110.00616.51
7.3.250.0110.00816.36
7.3.240.0080.01016.40
7.3.230.0070.01116.71
7.3.210.0140.00316.46
7.3.200.0090.00816.61
7.3.190.0070.01016.38
7.3.180.0090.01016.35
7.3.170.0090.01616.61
7.3.160.0090.00616.54
7.3.130.0030.01414.88
7.3.120.0100.00714.96
7.3.110.0070.01014.80
7.3.100.0030.00914.93
7.3.90.0070.00714.86
7.3.80.0060.01014.80
7.3.70.0060.00714.93
7.3.60.0080.00414.83
7.3.50.0050.01014.70
7.3.40.0070.00614.78
7.3.30.0080.00714.87
7.3.20.0020.00916.65
7.3.10.0020.01216.67
7.3.00.0090.00516.53
7.2.330.0120.00616.86
7.2.320.0080.01616.86
7.2.310.0070.01016.70
7.2.300.0100.00616.38
7.2.290.0140.01016.46
7.2.260.0070.01014.79
7.2.250.0110.00814.96
7.2.240.0050.01014.93
7.2.230.0060.01114.90
7.2.220.0110.00514.90
7.2.210.0060.00714.92
7.2.200.0020.01014.97
7.2.190.0070.00915.03
7.2.180.0070.00915.03
7.2.170.0090.00814.95
7.2.160.0060.01114.77
7.2.150.0090.00616.81
7.2.140.0070.00516.79
7.2.130.0050.01016.83
7.2.120.0070.00716.78
7.2.110.0090.00717.02
7.2.100.0100.00616.95
7.2.90.0050.01117.08
7.2.80.0060.01116.74
7.2.70.0090.00616.82
7.2.60.0050.00916.84
7.2.50.0070.00716.75
7.2.40.0100.00516.95
7.2.30.0090.00716.80
7.2.20.0020.01117.06
7.2.10.0090.00616.85
7.2.00.0040.01217.83
7.1.330.0060.00715.87
7.1.320.0060.00915.87
7.1.310.0050.00715.83
7.1.300.0050.00915.77
7.1.290.0080.00615.68
7.1.280.0080.00615.66
7.1.270.0060.01015.73
7.1.260.0080.00815.75
7.1.250.0020.01215.85
7.1.240.0090.00615.61
7.1.230.0030.00715.72
7.1.220.0000.01115.88
7.1.210.0060.00915.89
7.1.200.0030.00915.65
7.1.190.0090.00315.77
7.1.180.0030.01015.61
7.1.170.0040.01115.77
7.1.160.0040.00815.59
7.1.150.0100.00315.77
7.1.140.0040.00715.72
7.1.130.0060.00315.57
7.1.120.0110.00415.66
7.1.110.0000.01015.96
7.1.100.0060.01017.13
7.1.90.0040.01115.82
7.1.80.0030.01215.95
7.1.70.0070.00516.57
7.1.60.0150.01025.40
7.1.50.0200.00825.35
7.1.40.0180.01025.22
7.1.30.0160.01525.26
7.1.20.0180.01025.08
7.1.10.0060.01016.15
7.1.00.0020.01016.29
7.0.330.0080.00815.61
7.0.320.0040.00815.47
7.0.310.0120.00615.32
7.0.300.0070.00715.38
7.0.290.0050.00515.22
7.0.280.0150.00015.42
7.0.270.0060.00615.55
7.0.260.0070.00715.49
7.0.250.0030.00715.54
7.0.240.0030.00715.32
7.0.230.0040.00815.57
7.0.220.0050.00315.40
7.0.210.0030.00615.55
7.0.200.0030.01516.15
7.0.190.0110.01116.20
7.0.180.0050.01615.95
7.0.170.0080.01415.95
7.0.160.0060.01316.00
7.0.150.0130.00615.75
7.0.140.0090.00915.83
7.0.130.0060.01215.85
7.0.120.0050.01015.99
7.0.110.0090.00715.85
7.0.100.0090.00915.83
7.0.90.0080.00815.92
7.0.80.0060.01116.03
7.0.70.0110.00815.81
7.0.60.0040.01315.86
7.0.50.0040.00915.89
7.0.40.0080.00715.20
7.0.30.0060.00915.15
7.0.20.0020.01415.03
7.0.10.0080.00914.88
7.0.00.0110.00614.95
5.6.400.0060.00614.38
5.6.390.0070.00714.52
5.6.380.0000.01214.36
5.6.370.0100.00714.57
5.6.360.0120.00314.59
5.6.350.0040.00414.58
5.6.340.0040.01114.50
5.6.330.0000.01114.85
5.6.320.0090.00614.47
5.6.310.0060.00614.36
5.6.300.0090.00614.79
5.6.290.0100.00614.44
5.6.280.0070.00714.45
5.6.270.0100.00314.55
5.6.260.0060.01014.40
5.6.250.0040.01214.64
5.6.240.0100.00314.60
5.6.230.0090.00314.52
5.6.220.0080.00414.41
5.6.210.0040.01114.64
5.6.200.0030.00614.73
5.6.190.0030.00614.44
5.6.180.0000.01514.35
5.6.170.0040.01114.39
5.6.160.0090.00314.60
5.6.150.0000.01414.76
5.6.140.0100.00314.47
5.6.130.0040.01214.77
5.6.120.0070.00714.34
5.6.110.0050.00414.74
5.6.100.0070.00714.45
5.6.90.0040.01114.36
5.6.80.0070.00714.64
5.6.70.0070.00414.12
5.6.60.0000.00814.22
5.6.50.0060.00614.23
5.6.40.0070.01114.39
5.6.30.0090.00614.16
5.6.20.0060.01214.53
5.6.10.0040.01514.34
5.6.00.0120.00314.36

preferences:
43.66 ms | 400 KiB | 5 Q