3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="foo"; var_dump($a instanceof stdClass); var_dump("foo" instanceof stdClass); $array1 = array( 'foo' => 'foo', 'bar' => 'bar', ); $array2 = array( 'bar' => 'bar', 'foo' => 'foo', ); var_dump(array_diff($array1, $array2)); // Result: empty array. var_dump($array1 == $array2); // Result: true. var_dump($array1 === $array2); // Result: false. ?>

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.01016.75
8.3.50.0120.00622.10
8.3.40.0090.01418.72
8.3.30.0080.00619.01
8.3.20.0040.00420.12
8.3.10.0000.00823.48
8.3.00.0080.00019.13
8.2.180.0120.00918.13
8.2.170.0110.00422.96
8.2.160.0000.01420.38
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0100.00726.16
8.2.120.0060.00321.99
8.2.110.0090.00020.50
8.2.100.0040.00817.91
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0060.00317.90
8.2.50.0000.00818.07
8.2.40.0000.00819.88
8.2.30.0000.00719.91
8.2.20.0040.00417.71
8.2.10.0040.00418.11
8.2.00.0090.00317.62
8.1.280.0030.01425.92
8.1.270.0160.00322.17
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00023.97
8.1.230.0080.00317.45
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0000.01017.13
8.1.190.0060.00317.35
8.1.180.0100.00019.01
8.1.170.0050.00518.46
8.1.160.0030.00621.99
8.1.150.0020.00518.62
8.1.140.0000.00717.34
8.1.130.0000.00717.42
8.1.120.0000.00717.42
8.1.110.0070.00017.32
8.1.100.0000.00717.34
8.1.90.0000.00817.46
8.1.80.0030.00317.46
8.1.70.0070.00017.36
8.1.60.0000.00717.62
8.1.50.0040.00417.49
8.1.40.0080.00017.46
8.1.30.0030.00617.52
8.1.20.0070.00017.64
8.1.10.0040.00417.47
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0040.00417.12
8.0.260.0070.00016.68
8.0.250.0030.00316.82
8.0.240.0030.00316.94
8.0.230.0050.00316.94
8.0.220.0030.00316.77
8.0.210.0000.00816.76
8.0.200.0000.00716.93
8.0.190.0050.00316.81
8.0.180.0040.00416.80
8.0.170.0040.00416.79
8.0.160.0030.00317.00
8.0.150.0040.00416.71
8.0.140.0040.00716.83
8.0.130.0000.00513.30
8.0.120.0040.00416.83
8.0.110.0000.00816.71
8.0.100.0040.00316.73
8.0.90.0000.00716.92
8.0.80.0070.01416.85
8.0.70.0000.00716.90
8.0.60.0040.00416.74
8.0.50.0000.00716.70
8.0.30.0060.01517.06
8.0.20.0090.00917.40
8.0.10.0040.00417.03
8.0.00.0090.01016.75
7.4.330.0000.00515.07
7.4.320.0000.00616.42
7.4.300.0060.00016.55
7.4.290.0000.00716.50
7.4.280.0070.00316.43
7.4.270.0040.00416.63
7.4.260.0070.00016.49
7.4.250.0000.00716.46
7.4.240.0050.00216.57
7.4.230.0030.00316.29
7.4.220.0070.01116.36
7.4.210.0100.00716.58
7.4.200.0060.00016.39
7.4.190.0000.00716.44
7.4.160.0110.00416.42
7.4.150.0140.00317.40
7.4.140.0100.00717.86
7.4.130.0070.01016.44
7.4.120.0130.00416.55
7.4.110.0170.00416.75
7.4.100.0100.01016.25
7.4.90.0000.01816.59
7.4.80.0070.01619.39
7.4.70.0130.00316.41
7.4.60.0070.01016.60
7.4.50.0030.00516.16
7.4.40.0100.00722.77
7.4.30.0060.00916.44
7.4.10.0100.00715.00
7.4.00.0140.00414.99
7.3.330.0050.00012.98
7.3.320.0030.00313.16
7.3.310.0000.00816.11
7.3.300.0070.00016.27
7.3.290.0140.00416.30
7.3.280.0090.00816.27
7.3.270.0130.00417.40
7.3.260.0070.01016.58
7.3.250.0110.01216.30
7.3.240.0090.00616.29
7.3.230.0070.01016.43
7.3.210.0150.00616.22
7.3.200.0090.01219.39
7.3.190.0100.00716.52
7.3.180.0120.00416.29
7.3.170.0160.00016.27
7.3.160.0130.00316.51
7.3.130.0040.01114.65
7.3.120.0070.01314.43
7.3.110.0090.00615.03
7.3.100.0110.00815.03
7.3.90.0130.00314.80
7.3.80.0070.00714.76
7.3.70.0060.00614.60
7.3.60.0130.00014.82
7.3.50.0040.01014.74
7.3.40.0090.00314.85
7.3.30.0040.01414.56
7.3.20.0030.01216.58
7.3.10.0030.01716.64
7.3.00.0110.00016.60
7.2.330.0040.01516.51
7.2.320.0070.01416.17
7.2.310.0090.00916.63
7.2.300.0090.01516.45
7.2.290.0070.01116.40
7.2.260.0120.00314.98
7.2.250.0170.00314.62
7.2.240.0070.01014.87
7.2.230.0070.00714.85
7.2.220.0140.00314.90
7.2.210.0080.00614.72
7.2.200.0070.00714.91
7.2.190.0100.00315.06
7.2.180.0100.00714.73
7.2.170.0030.01014.86
7.2.160.0030.00914.39
7.2.150.0110.01116.76
7.2.140.0080.00816.57
7.2.130.0080.00816.76
7.2.120.0070.00716.80
7.2.110.0060.00316.67
7.2.100.0030.01016.68
7.2.90.0060.00616.75
7.2.80.0030.01016.84
7.2.70.0070.00716.74
7.2.60.0130.00316.52
7.2.50.0000.01216.53
7.2.40.0130.00016.95
7.2.30.0060.00916.62
7.2.20.0080.00416.54
7.2.10.0090.00616.55
7.2.00.0070.01016.61
7.1.330.0070.00715.73
7.1.320.0000.00915.71
7.1.310.0130.00015.58
7.1.300.0040.00815.56
7.1.290.0060.00615.42
7.1.280.0110.00315.79
7.1.270.0080.00815.54
7.1.260.0060.00615.63
7.1.250.0070.00415.44
7.1.240.0040.01115.44
7.1.230.0040.00715.37
7.1.220.0130.00315.45
7.1.210.0040.00815.42
7.1.200.0070.00715.70
7.1.190.0060.00315.38
7.1.180.0030.00615.59
7.1.170.0120.00315.49
7.1.160.0040.00415.49
7.1.150.0000.01115.68
7.1.140.0040.00815.61
7.1.130.0060.00915.48
7.1.120.0030.00915.55
7.1.110.0070.00715.64
7.1.100.0070.01015.74
7.1.90.0030.01015.71
7.1.80.0070.00715.38
7.1.70.0000.00915.55
7.1.60.0000.01315.55
7.1.50.0060.00315.30
7.1.40.0090.00015.54
7.1.30.0030.01315.45
7.1.20.0040.01215.74
7.1.10.0080.00315.59
7.1.00.0000.01315.62
7.0.330.0110.00415.45
7.0.320.0000.01615.13
7.0.310.0070.00715.18
7.0.300.0060.00315.30
7.0.290.0030.00715.14
7.0.280.0060.00315.04
7.0.270.0000.01415.18
7.0.260.0070.00415.39
7.0.250.0120.00314.89
7.0.240.0050.00515.14
7.0.230.0000.01315.17
7.0.220.0030.01015.31
7.0.210.0030.01015.39
7.0.200.0090.00315.18
7.0.190.0000.01515.21
7.0.180.0000.01715.32
7.0.170.0080.00015.12
7.0.160.0070.00715.29
7.0.150.0030.00715.21
7.0.140.0030.00815.11
7.0.130.0090.00015.36
7.0.120.0030.01214.94
7.0.110.0120.00615.18
7.0.100.0030.00715.16
7.0.90.0070.00315.25
7.0.80.0000.00815.36
7.0.70.0060.00515.32
7.0.60.0030.01315.07
7.0.50.0030.01415.30
7.0.40.0040.01113.20
7.0.30.0070.00713.29
7.0.20.0030.01013.07
7.0.10.0030.01013.32
7.0.00.0000.01413.37
5.6.400.0040.00814.05
5.6.390.0030.00714.23
5.6.380.0070.00714.41
5.6.370.0060.00614.36
5.6.360.0070.00414.00
5.6.350.0070.00414.25
5.6.340.0040.00414.22
5.6.330.0060.00914.09
5.6.320.0000.01413.80
5.6.310.0030.00713.88
5.6.300.0040.01114.16
5.6.290.0070.00414.01
5.6.280.0000.01314.27
5.6.270.0030.01614.20
5.6.260.0110.00314.22
5.6.250.0090.00314.11
5.6.240.0000.00914.20
5.6.230.0030.00614.38
5.6.220.0070.00314.26
5.6.210.0090.00314.30
5.6.200.0080.00413.81
5.6.190.0090.00614.04
5.6.180.0040.00813.90
5.6.170.0090.00614.38
5.6.160.0030.00513.90
5.6.150.0050.00314.14
5.6.140.0040.01113.87
5.6.130.0070.00714.01
5.6.120.0030.00714.17
5.6.110.0040.01214.01
5.6.100.0030.00614.18
5.6.90.0070.00714.13
5.6.80.0070.00314.28
5.6.70.0080.00814.01
5.6.60.0080.00313.92
5.6.50.0160.00013.99
5.6.40.0030.00913.92
5.6.30.0090.00313.93
5.6.20.0030.01013.97
5.6.10.0030.01314.03
5.6.00.0000.01513.98
5.5.380.0120.00314.00
5.5.370.0040.00413.73
5.5.360.0030.00614.01
5.5.350.0040.01113.99
5.5.340.0000.01413.82
5.5.330.0040.01114.19
5.5.320.0000.01014.31
5.5.310.0070.00713.67
5.5.300.0140.00314.14
5.5.290.0040.00813.70
5.5.280.0060.00614.10
5.5.270.0060.00613.86
5.5.260.0030.00713.83
5.5.250.0040.01113.93
5.5.240.0080.00013.79
5.5.230.0000.01314.06
5.5.220.0030.01013.81
5.5.210.0040.01113.88
5.5.200.0000.00914.16
5.5.190.0000.01113.89
5.5.180.0080.00313.96
5.5.170.0060.00914.05
5.5.160.0090.00613.81
5.5.150.0070.00414.08
5.5.140.0060.00814.05
5.5.130.0100.00313.73
5.5.120.0120.00313.75
5.5.110.0060.00913.92
5.5.100.0040.00713.99
5.5.90.0040.00713.76
5.5.80.0000.01613.86
5.5.70.0070.00714.03
5.5.60.0060.00714.03
5.5.50.0030.01213.78
5.5.40.0060.01213.93
5.5.30.0070.00713.80
5.5.20.0040.00414.01
5.5.10.0070.00713.71
5.5.00.0060.00613.85
5.4.450.0030.01011.84
5.4.440.0060.00311.84
5.4.430.0040.00811.84
5.4.420.0090.00311.84
5.4.410.0040.00811.84
5.4.400.0000.00911.84
5.4.390.0040.00411.84
5.4.380.0060.00611.84
5.4.370.0000.00611.84
5.4.360.0070.00411.84
5.4.350.0000.01111.84
5.4.340.0040.00811.84
5.4.330.0110.00311.84
5.4.320.0090.00611.84
5.4.310.0070.00411.84
5.4.300.0090.00311.84
5.4.290.0060.02112.14
5.4.280.0060.02412.09
5.4.270.0040.02412.09
5.4.260.0060.02412.09
5.4.250.0050.02212.09
5.4.240.0040.02112.09
5.4.230.0040.02312.09
5.4.220.0020.02512.09
5.4.210.0050.02212.09
5.4.200.0060.02612.09
5.4.190.0060.01912.09
5.4.180.0060.01912.08
5.4.170.0100.02812.09
5.4.160.0050.02312.09
5.4.150.0030.02312.09
5.4.140.0080.02011.93
5.4.130.0080.01711.92
5.4.120.0070.02111.90
5.4.110.0060.02111.90
5.4.100.0060.02111.90
5.4.90.0040.02311.90
5.4.80.0050.02311.90
5.4.70.0050.02311.90
5.4.60.0050.02111.90
5.4.50.0080.02711.90
5.4.40.0080.02411.89
5.4.30.0090.02611.89
5.4.20.0080.03111.89
5.4.10.0060.03111.89
5.4.00.0070.03011.64
5.3.290.0000.00911.84
5.3.280.0080.02312.28
5.3.270.0060.02312.28
5.3.260.0060.02212.28
5.3.250.0030.02312.28
5.3.240.0080.01912.28
5.3.230.0050.02712.27
5.3.220.0050.02512.26
5.3.210.0040.03212.26
5.3.200.0060.02712.26
5.3.190.0080.02812.26
5.3.180.0040.03212.26
5.3.170.0050.02012.25
5.3.160.0040.02612.26
5.3.150.0060.02912.26
5.3.140.0070.02912.25
5.3.130.0040.03612.25
5.3.120.0050.03412.25
5.3.110.0090.02812.25
5.3.100.0040.03111.98
5.3.90.0050.02911.96
5.3.80.0070.02611.96
5.3.70.0030.02311.96
5.3.60.0090.02411.95
5.3.50.0030.02511.92
5.3.40.0050.02611.92
5.3.30.0050.01911.89
5.3.20.0070.02111.78
5.3.10.0060.02211.77
5.3.00.0080.02311.76

preferences:
51.08 ms | 401 KiB | 5 Q