3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $prop = 42; public function __set($x, $y) { echo "SET\n"; $this->$x = $y; } } $a = new A(); var_dump($a); unset($a->prop); echo "Wait for it ... "; $a->prop = 42;

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.4.130.0080.00317.69
8.4.120.0120.00820.60
8.4.110.0120.00522.70
8.4.100.0090.01120.63
8.4.90.0150.00618.80
8.4.80.0040.00420.53
8.4.70.0130.00718.11
8.4.60.0150.00718.88
8.4.50.0090.00618.53
8.4.40.0150.00419.38
8.4.30.0130.00620.68
8.4.20.0070.01118.70
8.4.10.0090.00017.75
8.3.260.0100.01016.77
8.3.250.0060.01118.94
8.3.240.0110.00418.96
8.3.230.0030.00516.70
8.3.220.0090.01019.04
8.3.210.0060.00816.78
8.3.200.0050.00416.56
8.3.190.0090.01216.52
8.3.180.0120.00816.82
8.3.170.0100.00918.66
8.3.160.0090.00019.97
8.3.150.0070.01316.62
8.3.140.0080.00019.04
8.3.130.0050.00316.63
8.3.120.0060.00920.94
8.3.110.0030.00616.51
8.3.100.0040.00716.66
8.3.90.0040.00416.70
8.3.80.0070.00317.97
8.3.70.0130.00718.31
8.3.60.0170.00316.63
8.3.50.0110.00618.15
8.3.40.0140.00418.67
8.3.30.0110.00418.64
8.3.20.0050.00322.28
8.3.10.0000.00823.48
8.3.00.0000.00822.58
8.2.290.0100.00720.36
8.2.280.0080.01016.73
8.2.270.0130.00618.96
8.2.260.0110.00718.10
8.2.250.0060.00316.54
8.2.240.0030.00616.95
8.2.230.0030.00720.94
8.2.220.0120.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0120.00916.63
8.2.180.0110.01116.38
8.2.170.0040.01122.96
8.2.160.0030.01020.53
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0020.00526.16
8.2.110.0030.00622.21
8.2.100.0040.00817.52
8.2.90.0040.00419.48
8.2.80.0040.00417.97
8.2.70.0030.00617.80
8.2.60.0040.00417.90
8.2.50.0040.00418.10
8.2.40.0040.00421.21
8.2.30.0070.00019.06
8.2.20.0040.00417.92
8.2.10.0000.00819.14
8.2.00.0070.00019.28
8.1.330.0120.00721.95
8.1.320.0080.01116.09
8.1.310.0070.01018.24
8.1.300.0000.00816.13
8.1.290.0050.00518.88
8.1.280.0070.01025.92
8.1.270.0030.00522.19
8.1.260.0000.00726.35
8.1.250.0090.00028.09
8.1.240.0000.01019.14
8.1.230.0090.00319.12
8.1.220.0000.00817.80
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0080.00018.66
8.1.160.0000.00718.87
8.1.150.0000.00718.88
8.1.140.0040.00420.84
8.1.130.0000.00720.14
8.1.120.0040.00417.31
8.1.110.0030.00617.34
8.1.100.0040.00417.35
8.1.90.0050.00217.43
8.1.80.0030.00617.45
8.1.70.0080.00417.49
8.1.60.0040.00417.45
8.1.50.0080.00017.44
8.1.40.0080.00017.44
8.1.30.0040.00417.51
8.1.20.0070.00017.53
8.1.10.0000.00817.45
8.1.00.0000.00817.50
8.0.300.0000.00819.70
8.0.290.0050.00316.75
8.0.280.0070.00018.53
8.0.270.0030.00317.16
8.0.260.0000.00621.90
8.0.250.0000.00716.91
8.0.240.0050.00316.81
8.0.230.0030.00316.96
8.0.220.0070.00016.88
8.0.210.0040.00416.79
8.0.200.0030.00316.87
8.0.190.0080.00016.84
8.0.180.0080.00016.89
8.0.170.0030.00616.78
8.0.160.0000.00716.87
8.0.150.0040.00416.90
8.0.140.0040.00416.81
8.0.130.0030.00313.33
8.0.120.0040.00416.90
8.0.110.0040.00416.89
8.0.100.0040.00416.71
8.0.90.0040.00416.90
8.0.80.0080.00616.90
8.0.70.0000.00816.92
8.0.60.0000.00716.88
8.0.50.0040.00316.73
8.0.30.0070.01017.10
8.0.20.0150.00317.18
8.0.10.0000.00816.96
8.0.00.0070.01516.83
7.4.330.0020.00216.76
7.4.320.0000.00716.54
7.4.300.0030.00316.58
7.4.290.0040.00416.56
7.4.280.0000.00816.48
7.4.270.0040.00416.44
7.4.260.0060.00013.17
7.4.250.0070.00016.47
7.4.240.0070.00116.59
7.4.230.0080.00016.39
7.4.220.0000.00716.58
7.4.210.0080.00816.56
7.4.200.0000.00716.59
7.4.140.0110.00617.86
7.4.130.0140.00316.52
7.4.120.0060.01216.57
7.4.110.0090.00916.52
7.4.100.0140.00316.66
7.4.90.0060.01316.60
7.4.80.0060.01319.39
7.4.70.0030.01416.69
7.4.60.0090.00916.22
7.4.50.0030.01416.45
7.4.40.0090.00616.47
7.4.00.0110.00814.83
7.3.330.0000.00716.37
7.3.320.0050.00013.17
7.3.310.0030.00316.46
7.3.300.0030.00316.35
7.3.290.0030.00316.36
7.3.280.0040.01116.27
7.3.260.0100.00916.46
7.3.240.0110.00816.49
7.3.230.0050.01416.34
7.3.210.0130.00416.40
7.3.200.0140.00316.30
7.3.190.0130.00516.29
7.3.180.0030.01316.43
7.3.170.0120.00616.34
7.3.160.0080.00816.31
7.3.90.0060.00814.82
7.3.80.0120.00615.16
7.3.70.0030.01014.93
7.3.60.0060.01214.73
7.3.50.0080.00514.70
7.3.40.0030.01014.49
7.3.30.0110.01014.79
7.3.20.0110.00414.86
7.3.10.0110.00714.82
7.3.00.0120.00515.02
7.2.330.0140.00416.41
7.2.320.0110.00616.68
7.2.310.0070.01016.36
7.2.300.0080.00816.63
7.2.290.0100.00516.62
7.2.220.0130.00315.09
7.2.210.0100.01015.17
7.2.200.0060.00915.07
7.2.190.0100.01015.07
7.2.180.0040.01114.73
7.2.170.0040.01114.76
7.2.160.0090.00614.98
7.2.150.0100.01015.04
7.2.140.0030.01715.01
7.2.130.0060.00914.61
7.2.120.0040.01214.96
7.2.110.0070.01014.84
7.2.100.0110.00415.13
7.2.90.0280.00315.03
7.2.80.0030.01514.98
7.2.70.0100.01014.89
7.2.60.0120.00715.12
7.2.50.0030.01614.84
7.2.40.0130.00614.96
7.2.30.0160.00315.01
7.2.20.0040.01214.83
7.2.10.0100.00314.94
7.2.00.0110.00615.00
7.1.320.0060.01313.92
7.1.310.0100.01013.85
7.1.300.0080.01113.84
7.1.290.0090.00413.99
7.1.280.0100.00713.80
7.1.270.0100.00513.97
7.1.260.0040.01413.93
7.1.250.0070.01013.91

preferences:
27.9 ms | 403 KiB | 5 Q