3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SEGV { private $obj; public function __construct() { } // there should be construct to get SEGV public function segv() { $this->obj->attribute = "TEST"; } public function getObj() { return $this->obj; } } $s = new SEGV; //$s->segv(); // if value of obj is set from the inside of class, it will not get SEGV. $s->getObj()->attribute["TEST"] = "TEST"; // member value is set from the outside of class $s->segv(); // this set function will get SEGV $s->segv(); echo "SUCCESS\n";

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.0070.00718.56
8.3.50.0110.00718.32
8.3.40.0040.01418.83
8.3.30.0040.01119.17
8.3.20.0080.00020.34
8.3.10.0080.00023.48
8.3.00.0040.00420.93
8.2.180.0060.00916.63
8.2.170.0130.00722.96
8.2.160.0100.00720.43
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00720.96
8.2.110.0100.00019.33
8.2.100.0060.00618.16
8.2.90.0050.00318.98
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0050.00317.92
8.2.50.0060.00318.07
8.2.40.0090.00019.82
8.2.30.0080.00018.09
8.2.20.0050.00317.61
8.2.10.0040.00417.86
8.2.00.0040.00417.74
8.1.270.0000.00823.88
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00320.14
8.1.230.0040.00819.00
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00917.23
8.1.190.0090.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00418.62
8.1.160.0050.00321.89
8.1.150.0040.00418.59
8.1.140.0040.00417.46
8.1.130.0030.00317.76
8.1.120.0040.00317.44
8.1.110.0020.00517.26
8.1.100.0070.00017.38
8.1.90.0040.00417.40
8.1.80.0070.00317.45
8.1.70.0040.00417.39
8.1.60.0040.00417.61
8.1.50.0050.00317.53
8.1.40.0000.00717.57
8.1.30.0000.00817.64
8.1.20.0080.00017.57
8.1.10.0000.00817.63
8.1.00.0000.00817.56
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0030.00318.42
8.0.270.0030.00317.27
8.0.260.0040.00417.08
8.0.250.0040.00416.86
8.0.240.0000.00817.03
8.0.230.0070.00016.85
8.0.220.0040.00416.93
8.0.210.0000.00616.87
8.0.200.0000.00716.95
8.0.190.0080.00016.94
8.0.180.0050.00216.91
8.0.170.0040.00416.94
8.0.160.0040.00416.95
8.0.150.0030.00316.73
8.0.140.0030.00316.76
8.0.130.0050.00013.34
8.0.120.0020.00516.89
8.0.110.0000.00816.89
8.0.100.0040.00416.80
8.0.90.0030.00516.72
8.0.80.0030.01216.79
8.0.70.0040.00416.75
8.0.60.0040.00416.72
8.0.50.0030.00416.96
8.0.30.0130.00616.90
8.0.20.0110.01017.41
8.0.10.0040.00417.07
8.0.00.0100.01016.70
7.4.330.0000.00715.00
7.4.320.0060.00016.44
7.4.300.0000.00716.46
7.4.290.0000.00816.51
7.4.280.0000.00816.59
7.4.270.0030.00316.61
7.4.260.0070.00316.50
7.4.250.0000.00716.33
7.4.240.0030.00416.58
7.4.230.0070.00016.52
7.4.220.0100.00716.71
7.4.210.0090.00616.63
7.4.200.0080.00016.50
7.4.190.0070.00016.61
7.4.160.0060.00916.45
7.4.150.0070.01117.40
7.4.140.0100.00817.86
7.4.130.0100.00716.48
7.4.120.0050.01516.58
7.4.110.0150.00416.51
7.4.100.0090.00916.65
7.4.90.0110.00716.69
7.4.80.0040.01219.39
7.4.70.0060.01116.63
7.4.60.0070.01016.40
7.4.50.0030.00516.52
7.4.40.0030.01316.71
7.4.30.0060.01516.45
7.4.00.0030.01714.94
7.3.330.0030.00313.43
7.3.320.0000.00713.36
7.3.310.0070.00016.45
7.3.300.0030.00316.31
7.3.290.0060.01216.43
7.3.280.0100.00816.45
7.3.270.0100.00717.40
7.3.260.0140.00316.59
7.3.250.0080.00916.38
7.3.240.0100.00716.60
7.3.230.0080.00816.53
7.3.210.0070.01116.63
7.3.200.0070.01319.39
7.3.190.0060.01516.55
7.3.180.0080.00816.33
7.3.170.0060.01016.37
7.3.160.0030.01316.44
7.3.120.0150.00415.02
7.3.110.0130.00615.12
7.3.100.0100.01014.98
7.3.90.0090.00914.72
7.3.80.0060.01014.84
7.3.70.0000.01214.82
7.3.60.0100.00614.86
7.3.50.0030.00914.72
7.3.40.0060.00615.00
7.3.30.0080.00514.77
7.3.20.0030.00916.65
7.3.10.0070.00716.62
7.3.00.0070.00816.58
7.2.330.0160.00616.77
7.2.320.0130.00316.76
7.2.310.0100.00716.87
7.2.300.0140.00316.82
7.2.290.0090.01316.37
7.2.250.0100.01014.89
7.2.240.0140.00414.78
7.2.230.0030.01414.83
7.2.220.0070.01114.96
7.2.210.0040.01414.77
7.2.200.0060.00315.25
7.2.190.0120.00615.06
7.2.180.0040.01115.21
7.2.170.0000.01515.05
7.2.160.0000.01414.89
7.2.150.0130.00617.04
7.2.140.0130.00716.88
7.2.130.0040.01117.00
7.2.120.0040.00916.84
7.2.110.0040.01016.75
7.2.100.0030.00916.64
7.2.90.0070.00716.70
7.2.80.0090.00516.78
7.2.70.0050.00916.92
7.2.60.0060.01016.80
7.2.50.0070.00616.72
7.2.40.0030.01116.68
7.2.30.0080.00616.76
7.2.20.0050.01116.74
7.2.10.0040.01116.86
7.2.00.0050.01017.50
7.1.330.0040.01115.72
7.1.320.0000.01315.79
7.1.310.0030.01215.98
7.1.300.0100.00615.82
7.1.290.0030.01315.60
7.1.280.0030.00815.66
7.1.270.0000.01115.82
7.1.260.0090.00615.61
7.1.250.0030.00615.87
7.1.230.0000.01415.67
7.1.220.0030.00915.68
7.1.210.0060.00615.61
7.1.200.0040.00915.76
7.1.190.0100.00315.73
7.1.180.0060.00915.71
7.1.170.0040.00815.35
7.1.160.0100.00715.35
7.1.150.0030.01315.55
7.1.140.0000.01515.52
7.1.130.0080.00815.55
7.1.120.0100.00315.77
7.1.110.0090.00615.52
7.1.100.0030.00816.92
7.1.90.0090.00615.64
7.1.80.0030.00915.56
7.1.70.0060.00816.21
7.1.60.0090.01217.80
7.1.50.0140.00516.39
7.1.40.1150.00615.80
7.1.30.0040.01415.70
7.1.20.0070.01015.75
7.1.10.0040.01115.54
7.1.00.0070.04018.94
7.0.310.0060.00615.51
7.0.300.0070.00715.50
7.0.290.0000.01315.18
7.0.280.0040.00915.39
7.0.270.0090.00615.21
7.0.260.0080.00415.12
7.0.250.0000.01215.50
7.0.240.0030.01215.37
7.0.230.0090.00615.09
7.0.220.0070.00715.37
7.0.210.0070.00714.98
7.0.200.0400.00814.96
7.0.190.0000.01215.53
7.0.180.0130.00315.47
7.0.170.0060.00915.45
7.0.160.0090.00615.11
7.0.150.0100.00315.11
7.0.140.0020.04318.72
7.0.130.0080.00815.20
7.0.120.0060.00915.27
7.0.110.0030.01315.29
7.0.100.0040.01115.41
7.0.90.0090.00315.09
7.0.80.0040.00815.59
7.0.70.0050.04718.59
7.0.60.0050.03218.63
7.0.50.0020.04718.79
7.0.40.0050.03116.75
7.0.30.0050.04416.76
7.0.20.0020.04616.58
7.0.10.0050.03116.61
7.0.00.0050.02516.65
5.6.380.0070.01014.30
5.6.370.0110.00414.38
5.6.360.0040.00914.33
5.6.350.0090.00614.07
5.6.340.0110.00714.23
5.6.330.0080.00814.50
5.6.320.0030.01014.35
5.6.310.0040.01114.16
5.6.300.0090.00613.93
5.6.290.0090.00614.09
5.6.280.0050.04217.64
5.6.270.0060.00614.50
5.6.260.0110.00414.34
5.6.250.0110.00314.43
5.6.240.0060.00914.16
5.6.230.0090.00614.32
5.6.220.0020.04517.66
5.6.210.0100.03817.48
5.6.200.0040.04417.64
5.6.190.0060.03917.77
5.6.180.0070.02717.79
5.6.170.0080.03217.64
5.6.160.0050.03517.79
5.6.150.0050.04317.69
5.6.140.0100.04217.76
5.6.130.0030.04317.72
5.6.120.0020.03417.53
5.6.110.0060.02817.80
5.6.100.0040.03117.71
5.6.90.0070.04417.63
5.6.80.0100.03317.35
5.6.70.0020.03817.35
5.6.60.0060.03717.30
5.6.50.0000.04917.28
5.6.40.0040.03817.31
5.6.30.0090.04017.21
5.6.20.0100.03717.42
5.6.10.0070.02717.24
5.6.00.0080.03517.21
5.5.380.0070.00311.33
5.5.370.0070.00411.12
5.5.360.0080.04315.89
5.5.350.0020.02515.71
5.5.340.0060.03816.04
5.5.330.0050.03016.12
5.5.320.0080.03315.98
5.5.310.0090.04115.89
5.5.300.0080.03815.94
5.5.290.0090.03016.18
5.5.280.0050.04216.08
5.5.270.0030.02316.10
5.5.260.0070.02916.12
5.5.250.0020.03015.86
5.5.240.0060.04215.69
5.5.230.0110.02815.49
5.5.220.0020.04515.69
5.5.210.0070.04315.70
5.5.200.0070.04015.60
5.5.190.0030.03015.65
5.5.180.0020.04415.67
5.5.170.0030.01014.57
5.5.160.0040.04415.63
5.5.150.0060.04115.66
5.5.140.0020.03315.49
5.5.130.0030.02615.57
5.5.120.0030.02315.59
5.5.110.0060.02015.66
5.5.100.0030.02315.63
5.5.90.0030.02615.48
5.5.80.0050.02315.64
5.5.70.0030.04015.44
5.5.60.0000.02715.47
5.5.50.0030.02715.57
5.5.40.0070.02915.50
5.5.30.0030.03415.63
5.5.20.0040.02515.55
5.5.10.0030.02915.56
5.5.00.0070.02315.55
5.4.450.0020.03215.39
5.4.440.0050.02515.34
5.4.430.0060.03915.21
5.4.420.0070.04415.16
5.4.410.0030.04315.14
5.4.400.0030.03114.98
5.4.390.0040.02814.95
5.4.380.0060.04115.13
5.4.370.0070.03315.09
5.4.360.0060.03115.06
5.4.350.0020.04214.95
5.4.340.0050.03815.07
5.4.330.0030.00910.79
5.4.320.0030.03315.13
5.4.310.0070.02415.14
5.4.300.0030.04415.02
5.4.290.0070.02715.10
5.4.280.0050.02314.97
5.4.270.0020.02315.08
5.4.260.0070.04214.94
5.4.250.0020.03414.95
5.4.240.0050.02015.00
5.4.230.0020.04315.03
5.4.220.0050.02814.96
5.4.210.0120.02814.98
5.4.200.0070.03614.85
5.4.190.0030.03114.99
5.4.180.0040.03915.01
5.4.170.0020.02915.07
5.4.160.0020.02615.15
5.4.150.0030.03614.92
5.4.140.0080.02713.69
5.4.130.0050.04013.75
5.4.120.0020.03913.67
5.4.110.0020.02713.73
5.4.100.0070.03413.79
5.4.90.0000.04513.67
5.4.80.0090.03513.81
5.4.70.0080.03513.80
5.4.60.0080.03713.81
5.4.50.0040.03413.87
5.4.40.0020.03313.80
5.4.30.0070.03613.84
5.4.20.0030.02913.85
5.4.10.0020.04213.87
5.4.00.0030.03913.49
5.3.290.0090.03712.58
5.3.280.0030.02812.38
5.3.270.0070.04012.54
5.3.260.0000.02812.51
5.3.250.0050.02712.42
5.3.240.0020.02612.25
5.3.230.0060.02512.50
5.3.220.0020.02712.39
5.3.210.0020.02312.32
5.3.200.0050.03812.47
5.3.190.0030.04012.40
5.3.180.0000.03812.49
5.3.170.0050.04112.41
5.3.160.0050.02712.51
5.3.150.0020.03712.54
5.3.140.0100.03712.50
5.3.130.0030.03112.46
5.3.120.0060.02112.53
5.3.110.0020.04112.55
5.3.100.0060.03312.14
5.3.90.0050.03812.19
5.3.80.0030.03512.04
5.3.70.0020.03712.06
5.3.60.0030.03012.10
5.3.50.0060.03311.87
5.3.40.0020.03012.03
5.3.30.0080.03512.01
5.3.20.0050.03811.94
5.3.10.0050.04011.62
5.3.00.0020.03711.60
5.2.170.0050.02810.22
5.2.160.0080.03010.22
5.2.150.0030.03610.40
5.2.140.0030.02810.37
5.2.130.0050.02910.37
5.2.120.0000.03010.34
5.2.110.0030.01810.19
5.2.100.0030.02810.39
5.2.90.0030.03010.38
5.2.80.0030.03510.29
5.2.70.0020.02210.18
5.2.60.0050.02810.17
5.2.50.0020.03310.19
5.2.40.0050.02310.35
5.2.30.0050.03610.31
5.2.20.0010.02610.23
5.2.10.0040.02010.03
5.2.00.0060.0189.83
5.1.60.0020.0229.60
5.1.50.0040.0209.60
5.1.40.0010.0249.60
5.1.30.0020.0229.60
5.1.20.0040.0189.60
5.1.10.0050.0269.61
5.1.00.0000.0279.60
5.0.50.0050.0189.60
5.0.40.0050.0159.60
5.0.30.0000.0209.60
5.0.20.0000.0249.60
5.0.10.0030.0159.60
5.0.00.0040.0209.60
4.4.90.0020.0229.60
4.4.80.0010.0209.60
4.4.70.0040.0209.60
4.4.60.0010.0139.60
4.4.50.0020.0129.60
4.4.40.0020.0279.60
4.4.30.0020.0159.60
4.4.20.0000.0229.60
4.4.10.0000.0159.60
4.4.00.0000.0189.60
4.3.110.0000.0189.60
4.3.100.0000.0119.60
4.3.90.0020.0139.60
4.3.80.0020.0179.60
4.3.70.0020.0129.60
4.3.60.0020.0179.60
4.3.50.0030.0179.60
4.3.40.0050.0179.60
4.3.30.0030.0169.60
4.3.20.0000.0209.60
4.3.10.0020.0159.60
4.3.00.0030.0189.60

preferences:
61.82 ms | 400 KiB | 5 Q