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'; } } } } $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.40.0070.00718.69
8.3.30.0120.00318.75
8.3.20.0040.00420.21
8.3.10.0030.00521.89
8.3.00.0040.00419.77
8.2.170.0040.01422.96
8.2.160.0150.00019.21
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0000.00721.11
8.2.120.0070.00026.35
8.2.110.0030.00622.26
8.2.100.0040.00817.78
8.2.90.0000.00819.13
8.2.80.0040.00418.05
8.2.70.0100.00017.50
8.2.60.0000.00918.04
8.2.50.0030.00518.10
8.2.40.0000.00720.50
8.2.30.0060.00319.10
8.2.20.0050.00218.00
8.2.10.0040.00417.88
8.2.00.0000.00817.92
8.1.270.0000.00723.91
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0060.00622.12
8.1.220.0050.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00018.66
8.1.160.0040.00419.07
8.1.150.0050.00320.61
8.1.140.0050.00219.59
8.1.130.0000.00718.77
8.1.120.0070.00017.43
8.1.110.0050.00317.29
8.1.100.0000.00817.41
8.1.90.0000.00717.31
8.1.80.0000.00717.34
8.1.70.0050.00217.30
8.1.60.0030.00517.59
8.1.50.0080.00017.45
8.1.40.0090.00017.48
8.1.30.0000.00817.67
8.1.20.0050.00317.49
8.1.10.0000.00817.51
8.1.00.0050.00217.57
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.44
8.0.270.0030.00317.11
8.0.260.0040.00416.83
8.0.250.0030.00316.99
8.0.240.0030.00316.95
8.0.230.0000.00716.93
8.0.220.0080.00016.91
8.0.210.0030.00316.81
8.0.200.0030.00316.88
8.0.190.0030.00616.95
8.0.180.0050.00316.91
8.0.170.0030.00316.88
8.0.160.0070.00016.80
8.0.150.0070.00316.74
8.0.140.0040.00416.90
8.0.130.0040.00413.39
8.0.120.0050.00216.92
8.0.110.0040.00416.73
8.0.100.0000.00716.79
8.0.90.0000.00816.78
8.0.80.0090.01016.91
8.0.70.0070.00016.91
8.0.60.0040.00416.84
8.0.50.0000.00716.85
8.0.30.0080.01017.13
8.0.20.0100.01417.40
8.0.10.0000.00717.06
8.0.00.0100.00716.40
7.4.330.0050.00015.55
7.4.320.0000.00716.38
7.4.300.0000.00616.42
7.4.290.0040.00416.48
7.4.280.0040.00416.52
7.4.270.0030.00316.51
7.4.260.0030.00316.52
7.4.250.0000.00716.43
7.4.240.0000.00716.40
7.4.230.0070.00016.35
7.4.220.0100.00716.52
7.4.210.0100.00716.48
7.4.200.0070.00016.34
7.4.160.0110.00516.44
7.4.150.0110.01017.40
7.4.140.0100.01117.86
7.4.130.0070.01316.48
7.4.120.0110.01016.41
7.4.110.0110.00516.38
7.4.100.0080.01116.37
7.4.90.0120.00616.47
7.4.80.0060.01119.39
7.4.70.0100.00616.52
7.4.60.0150.00016.39
7.4.50.0100.01016.68
7.4.40.0060.01016.57
7.4.30.0060.01116.28
7.4.00.0140.00214.88
7.3.330.0030.00313.29
7.3.320.0000.00513.28
7.3.310.0060.00316.34
7.3.300.0040.00416.34
7.3.290.0030.01116.24
7.3.280.0060.00916.30
7.3.270.0170.00017.40
7.3.260.0100.00716.41
7.3.250.0100.00816.30
7.3.240.0130.00616.38
7.3.230.0110.00716.43
7.3.210.0120.00416.40
7.3.200.0160.00716.55
7.3.190.0080.00816.51
7.3.180.0110.00616.37
7.3.170.0100.01416.53
7.3.160.0060.01016.39
7.3.120.0130.00614.77
7.3.110.0090.00914.66
7.3.100.0060.00614.73
7.3.90.0000.01214.78
7.3.80.0000.01314.68
7.3.70.0070.00714.43
7.3.60.0000.01314.75
7.3.50.0030.01314.42
7.3.40.0110.00414.66
7.3.30.0090.00614.61
7.3.20.0110.00416.38
7.3.10.0070.00316.30
7.3.00.0050.00516.55
7.2.330.0090.00816.66
7.2.320.0090.01016.59
7.2.310.0120.00916.55
7.2.300.0060.00916.40
7.2.290.0120.00616.65
7.2.250.0090.00915.14
7.2.240.0040.01514.73
7.2.230.0080.00414.68
7.2.220.0130.00315.21
7.2.210.0070.00715.25
7.2.200.0040.01114.75
7.2.190.0050.00515.08
7.2.180.0000.01615.18
7.2.170.0110.00414.61
7.2.60.0030.01316.48
7.2.00.0060.00319.36
7.1.330.0090.00615.77
7.1.320.0000.01315.93
7.1.310.0030.01015.66
7.1.300.0030.01015.72
7.1.290.0090.00315.80
7.1.280.0040.01115.86
7.1.270.0080.00515.70
7.1.260.0080.00415.76
7.1.200.0040.01115.86
7.1.100.0000.01118.08
7.1.70.0090.00417.00
7.1.60.0220.00935.06
7.1.50.0220.01334.71
7.1.40.0140.01334.24
7.1.30.0160.01334.36
7.1.20.0150.01234.55
7.1.10.0100.00716.61
7.1.00.0070.00716.55
7.0.200.0030.01316.40
7.0.190.0060.01016.77
7.0.180.0000.01316.05
7.0.170.0100.00316.10
7.0.160.0050.00816.25
7.0.150.0030.01316.21
7.0.140.0060.00916.37
7.0.130.0070.00616.46
7.0.120.0030.01016.48
7.0.110.0060.01216.18
7.0.100.0040.01416.42
7.0.90.0140.00616.30
7.0.80.0040.01216.26
7.0.70.0000.01616.46
7.0.60.0030.01416.19
7.0.50.0070.00916.24
7.0.40.0050.01116.59
7.0.30.0030.01216.38
7.0.20.0060.00916.34
7.0.10.0060.01116.32
7.0.00.0040.01416.26

preferences:
38.46 ms | 400 KiB | 5 Q